Commit Graph

8 Commits

Author SHA1 Message Date
Dave LeCompte
2de853ade3 Fix missing global variable 2021-04-13 21:08:06 -07:00
Qeubd-Bsjso
a7d13c154c Debugging in Awari.java 2021-03-06 19:13:11 +05:30
Qeubd-Bsjso
1cc3d9f3c7 added Awari.java and AwariGame.java 2021-03-06 18:40:19 +05:30
Dave LeCompte
22c791d8d1 Port AWARI to Python
I attempted to do a faithful port of the logic for the most part. In particular, there's a clever base-6 encoding of move history that allows games to be stored as integers in a "losing book" array, which allows the AI to become stronger over time. I did not change this logic, as I felt that the cleverness of this solution is worth observing. I endeavored to make every variable clearer, and use functions to help make program flow easier to understand.

I did make one small change to the logic, which I also documented clearly, having to do with evaluating very large moves. The code, as originally published, looks like a typo to me, but with BASIC, it's hard to be certain.

Also, I'm bad at this game; the computer beats me almost always.
2021-02-28 15:12:47 -08:00
Jeff Atwood
18963ea719 add pascal and perl folders for all programs 2021-02-27 13:33:14 -08:00
nanochess
c197e2ad26 Ported AWARI to Javascript 2021-02-17 16:33:50 -06:00
Jeff Atwood
f899e5584c add README.md to each language subfolder 2021-02-15 14:22:06 -08:00
Jeff Atwood
54890a460b add all BASIC source files and folders 2021-02-09 19:36:03 -08:00