Welcome to Magic, my chess program

This is the place to talk about anything not related to Transport Tycoon itself.

Moderator: General Forums Moderators

Post Reply
DeletedUser6
Transport Coordinator
Transport Coordinator
Posts: 294
Joined: 23 Jul 2007 15:13
Location: Somewhere in this page

Welcome to Magic, my chess program

Post by DeletedUser6 »

Welcome to Magic - the only chess program that doesn't play chess :?

No seriously it doesn't - due to a series of things:
* I'm lazy
* I'm stupid
* I have no idea how to program the 'brain' - E1COMPUTE

Now with added non-support(!):
Doesn't support:
* Anything.

Programmed in possibly the worst language for a beginner to learn - C++. Compiles with G++ & Xcode - don't know about the others.
magic_0_2.zip
(486.14 KiB) Downloaded 83 times
Matthew:out

EDIT: Any thoughts or opinions?
Yay! I'm back! Did you miss me?


...


I thought not.
DeletedUser21
Tycoon
Tycoon
Posts: 11501
Joined: 20 Sep 2004 22:45

Re: Welcome to Magic, my chess program

Post by DeletedUser21 »

Uhm... Not trying to rip off your *talent*. But, what can it do? :p
DeletedUser6
Transport Coordinator
Transport Coordinator
Posts: 294
Joined: 23 Jul 2007 15:13
Location: Somewhere in this page

Re: Welcome to Magic, my chess program

Post by DeletedUser6 »

It provides a 'friendly' interface to a would-be chess engine:

New Game (White) :
<<<<<<<<<<<<<<<<<<<<<<<<<<<<

Code: Select all

Z1READ: Welcome to Magic! version private alpha 1 
Z1READ: Please enter 1 for new game, 2 for load an existing game, or 3 for quit: 
1
11READ: Loading .MOF File...Failure <--- MOF stands for Magic Opening File
Z7READ: Do you wish to be White (press 1), or Black (press 2)
1
Z13WRITE: Please enter your name: OTTDmaster

Z13WRITE: File contents are :
[Event "Game against Computer"]
[Site  "At Computer"]
[Date  "Thu Apr  7 16:00:30 2011
"]
[White  "OTTDmaster"]
[Black  "Computer"]
[Result " - "]
D4WHITE: Creating .PGN file. Please wait for the prompt
D4WHITE: Please enter your move in 4 letter algebraic i.e. e2e4.
Magic!:e2e4
It then goes into and infinite loop of heuristic functioning:

Code: Select all

Magic!:E1COMPUTE: Heuristic is starting. Please wait.
E1COMPUTE: Examining .MOF opening file. Please wait
E1COMPUTE: Generating possible moves
E1COMPUTE: Generating amount of time required
E1COMPUTE: ALPHABETA: Discarding moves - Depth 8
E1COMPUTE: ALPHABETA: Discarding moves - Depth 7
E1COMPUTE: ALPHABETA: Discarding moves - Depth 6
E1COMPUTE: ALPHABETA: Discarding moves - Depth 5
E1COMPUTE: ALPHABETA: Discarding moves - Depth 4
E1COMPUTE: ALPHABETA: Discarding moves - Depth 3
E1COMPUTE: ALPHABETA: Discarding moves - Depth 2
E1COMPUTE: ALPHABETA: Discarding moves - Final Ply
E1COMPUTE: ALPHABETA: No more plies left for this move
E1COMPUTE: ALPHABETA: Score was:0
E1COMPUTE: Trying again
E1COMPUTE: Organising moves by score
MAGIC: I play: 
D4WHITE: Creating .PGN file. Please wait for the prompt
D4WHITE: Please enter your move in 4 letter algebraic i.e. e2e4.
Magic!:E1COMPUTE: Heuristic is starting. Please wait.
E1COMPUTE: Examining .MOF opening file. Please wait
E1COMPUTE: Generating possible moves
E1COMPUTE: Generating amount of time required
E1COMPUTE: ALPHABETA: Discarding moves - Depth 8
E1COMPUTE: ALPHABETA: Discarding moves - Depth 7
E1COMPUTE: ALPHABETA: Discarding moves - Depth 6
E1COMPUTE: ALPHABETA: Discarding moves - Depth 5
E1COMPUTE: ALPHABETA: Discarding moves - Depth 4
E1COMPUTE: ALPHABETA: Discarding moves - Depth 3
E1COMPUTE: ALPHABETA: Discarding moves - Depth 2
E1COMPUTE: ALPHABETA: Discarding moves - Final Ply
E1COMPUTE: ALPHABETA: No more plies left for this move
E1COMPUTE: ALPHABETA: Score was:0
E1COMPUTE: Trying again
ad nauseum...
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
New Game (Black)
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

Code: Select all

Z1READ: Welcome to Magic! version private alpha 1 
Z1READ: Please enter 1 for new game, 2 for load an existing game, or 3 for quit: 
1
Z11READ: Loading .MOF File...Failure
Z7READ: Do you wish to be White (press 1), or Black (press 2)
2
Z14WRITE: Please enter your name: OTTDmaster

Z14WRITE: File contents are:
[Event "Game against Computer"]
[Site  "At Computer"]
[Date  "Thu Apr  7 16:03:41 2011
"]
[White  "Computer"]
[Black  "OTTDmaster"]
[Result " - "]
17
D5BLACK: My first move is Nb1c3
It then quits (for the time being)
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Loading a .FEN file
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

Code: Select all

1READ: Welcome to Magic! version private alpha 1 
Z1READ: Please enter 1 for new game, 2 for load an existing game, or 3 for quit: 
2
D2INIT: Would you like to load a .FEN file (press 1) or a .PGN file (press 2)?
1
Z10READ: Please note: The .FEN file is expected to be in the same directory as Magic! is in.
Z10READ: Please also note: The .FEN file is expected to be named game.fen
Z10READ: Please press enter.
Z10READ: Loading .FEN File...Failure
Z10READ: THE GRIM REAPER: Quitting
Z10READ: THE GRIM REAPER: Quitting : This is because I haven't got a .FEN file there yet - but you will see the success pocedure in .PGN loading.
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Loading a .PGN file (analysis)
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Similar procedure to .FEN file loading - but it doesn't load the file - just opens it.

Code: Select all

Z1READ: Welcome to Magic! version private alpha 1 
Z1READ: Please enter 1 for new game, 2 for load an existing game, or 3 for quit: 
2
D2INIT: Would you like to load a .FEN file (press 1) or a .PGN file (press 2)?
2
Z3READ: Please note: The .PGN file is expected to be in the same directory as Magic! is in.
Z3READ: Please also note: The .PGN file is expected to be named game.pgn
Z3READ: Please press enter.
Z3READ: Loading .PGN File...Success
Z12READ: Would you like to analyse this position and display a table of moves from this position(press 1)
Z12READ: Or would you like to play from this position(press 2)
1
E1COMPUTE: Heuristic is starting. Please wait.
E1COMPUTE: Examining .MOF opening file. Please wait
E1COMPUTE: Generating possible moves
E1COMPUTE: Generating amount of time required
E1COMPUTE: ALPHABETA: Discarding moves - Depth 8
E1COMPUTE: ALPHABETA: Discarding moves - Depth 7
E1COMPUTE: ALPHABETA: Discarding moves - Depth 6
E1COMPUTE: ALPHABETA: Discarding moves - Depth 5
E1COMPUTE: ALPHABETA: Discarding moves - Depth 4
E1COMPUTE: ALPHABETA: Discarding moves - Depth 3
E1COMPUTE: ALPHABETA: Discarding moves - Depth 2
E1COMPUTE: ALPHABETA: Discarding moves - Final Ply
E1COMPUTE: ALPHABETA: No more plies left for this move
E1COMPUTE: ALPHABETA: Score was:0
E1COMPUTE: Trying again
E1COMPUTE: Organising moves by score
MAGIC: I play: 
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Loading a .PGN file (playing from position)
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

Code: Select all

Z1READ: Welcome to Magic! version private alpha 1 
Z1READ: Please enter 1 for new game, 2 for load an existing game, or 3 for quit: 
2
D2INIT: Would you like to load a .FEN file (press 1) or a .PGN file (press 2)?
2
Z3READ: Please note: The .PGN file is expected to be in the same directory as Magic! is in.
Z3READ: Please also note: The .PGN file is expected to be named game.pgn
Z3READ: Please press enter.
Z3READ: Loading .PGN File...Success
Z12READ: Would you like to analyse this position and display a table of moves from this position(press 1)
Z12READ: Or would you like to play from this position(press 2)
2
Z12READ: Please enter your move in 4 letter algebraic i.e. e2e4.
Magic!:e2e4
E1COMPUTE: Heuristic is starting. Please wait.
E1COMPUTE: Examining .MOF opening file. Please wait
E1COMPUTE: Generating possible moves
E1COMPUTE: Generating amount of time required
E1COMPUTE: ALPHABETA: Discarding moves - Depth 8
E1COMPUTE: ALPHABETA: Discarding moves - Depth 7
E1COMPUTE: ALPHABETA: Discarding moves - Depth 6
E1COMPUTE: ALPHABETA: Discarding moves - Depth 5
E1COMPUTE: ALPHABETA: Discarding moves - Depth 4
E1COMPUTE: ALPHABETA: Discarding moves - Depth 3
E1COMPUTE: ALPHABETA: Discarding moves - Depth 2
E1COMPUTE: ALPHABETA: Discarding moves - Final Ply
E1COMPUTE: ALPHABETA: No more plies left for this move
E1COMPUTE: ALPHABETA: Score was:0
E1COMPUTE: Trying again
E1COMPUTE: Organising moves by score
MAGIC: I play: 
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Quitting
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

Code: Select all

Z1READ: Welcome to Magic! version private alpha 1 
Z1READ: Please enter 1 for new game, 2 for load an existing game, or 3 for quit: 
3
Z1READ: QUIT: Bye!
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

That enough?

Matthew:out
Yay! I'm back! Did you miss me?


...


I thought not.
DeletedUser6
Transport Coordinator
Transport Coordinator
Posts: 294
Joined: 23 Jul 2007 15:13
Location: Somewhere in this page

Re: Welcome to Magic, my chess program

Post by DeletedUser6 »

Utterly shameless BUMP.

I repeat: Any thoughts and opinions - and/or hate mail...
Yay! I'm back! Did you miss me?


...


I thought not.
Post Reply

Return to “Off-Topic”

Who is online

Users browsing this forum: No registered users and 41 guests