Commit Graph

3 Commits

Author SHA1 Message Date
Dave LeCompte
6a1794a435 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
3a9e19197d 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
3d6267433a 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