Mohamed El Mokhtar Messaoudi (Noggluggoid)
New member Username: Noggluggoid
Post Number: 18 Registered: 5-2016
| | Posted on Tuesday, December 05, 2017 - 10:17 pm: | |
This is a modest attempt to zogram Coffee. Coffee is yet another n-in-a-row game, invented by the prolific N. R. Andrés. A drop is dictated by the previous one, and dictates the next one, à la Quarto. For those knowing the game, I added two slight modifications: * The first drop can not occur on the central cell, as ZoG seems to consider it an enviable position, and either actively seeks it or tries to prevent the opponent from filling it. * The rules forbid a player to stalemate the opponent by imposing a direction with no free cell, and yet considers a stalemate a loss, which is somewhat unfair: as a game approaches its end, ever fewer cells are available. In demo-play, almost all games end in the first player being stalemated (in the 5-in-a-row variant, anyway), so I made that outcome a draw. Because of the code (not exactly Arabica, I fear), ZoG will ask twice about the same drop. Correcting that would imply more loops-inside-loops, I guess. Sorry about the annoyance. (Regarding n-in-a-row games, the graphics can be reused to implement C. Browne's Yavalath, a tricky -but trivial to code- game.) |