CONNECT 4 Chris Michael's Computer code - try to beat it. The C code cm76.c as written should compile anywhere. Also DOS version cm76.exe (76 refers to 7 columns and 6 rows) INSTRUCTIONS: Compile then run to start each game. (on Unix: gcc cm76.c then ./a.out ) The computer or you get to start randomly. You just type your move (1 to 7 ) then ENTER. If your move is invalid - just enter a valid move. You can type ahead - ie 44 moves to column 4 twice (if legal). You can change the Computer's level of play - this is set by two integers eq (3,8) at the start where there is a 3 - ply heuristic look-ahead followed by a 8 - ply game tree look-ahead. To change the heuristic look-ahead use p to increase by one and m to decrease by one. To change the game tree look-ahead use + to increase by one and - to decrease by one. It is most sensible to change by plus or minus two, so ++ is worth trying. Such changes just last for one game but you can use them from your first move (eq ++4). If you are stuck - the computer will play for you - type ? You will get the same level as the computer. So type a string of ?????????? to see the computer do all the work! Another feature is that typing q toggles more printout which gives information on the computer lookahead. Finally Ctrl-C (hold down Control and hit C) will terminate. E&OE