I've applied the classic minimax search to Four-Play, and I'm pleased with the results. The program will anticipate any traps within 7 moves and act accordingly. I was concerned that it might take a long time to search 7 moves ahead, but it turned out not to be too bad.The AI is not terribly difficult to beat at this point because the heuristics are simple. The search just checks whether there is a winning position or not. The next step will be to apply some more sophisticated heuristics, and then the game should be challenging.At the present time, you can only play red, and the Atari plays blue. Have fun!
Attached Files
-
fourplay_nov26.bin (4K)
downloads: 81



Create a custom theme








Keeping vertical sync while 'thinking' is nice if you can manage it? Z26 shows 265 lines during the thought process. If you're kinda sorta keeping vertical sync (but off by a few lines) it might be nice to also show a 'thinking' message or progress indication. Don't want to do anything that would take too much CPU time of course, but something quick might be nice.