Commit Graph

4 Commits

Author SHA1 Message Date
Dave LeCompte
015b8ce997 complete port HEXAPAWN to Python
refactoring for more pythonic idioms, moved parallel data arrays into a class, which helped structure board matching functionality and move list updating.

Should be pretty readable now.
2021-03-02 22:07:08 -08:00
Dave LeCompte
5c86c70676 update port HEXAPAWN to Python
mostly working, did major refactoring for clarity and understanding what all of the pieces are doing. Still another round of refactoring to go to make it clearer what's going on, but I think almost all of the logic is correct.

There's what looks like a bug where the human wins by advancing to the back row, and the computer incorrectly says that it has lost because it has no moves. I suspect this is a bug in my logic, but I'll have to trace through the BASIC to verify.

The game is playable and somewhat fun in its current state.
2021-03-02 09:05:13 -08:00
Dave LeCompte
ee7e22c95f WIP Begin Porting HEXAPAWN to Python
So far, have printed out instructions and parsed player moves. Submitting pull request to let folks know I'm working on this.
2021-03-01 09:08:03 -08:00
Jeff Atwood
e264c7976f add README.md to each language subfolder 2021-02-15 14:22:06 -08:00