Skip to content

rorySomething/python-shorties

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-shorties

Little 1 file python projects

Sudoku Solver

Just trying out backtracking and comparing its performance to how I'd play. Might look better performance-wise with less terminal output. Might experiment with image recognition to read in puzzles much later.

Kenken Solver

More backtracking, similar to sudoku but more complicated to implement the layout and rules. Copied and modified from Sudoku almost no changes to the backtracking code, lots of unused leftovers to cleanout. Doesn't read in puzzles any pleasant way.

Menace Tic-Tac-Toe

Matchbox and beads based tic tac toe player.
 Requires matplotlib
python menace.py -q 2000
 Will play 2000 games X bot vs O bot and make 2 graphs
 -q suppresses printing every game result
Room for improvement
 Implement save / load the learned state
 Don't waste saving the symmetic board numbers
 Don't save separate X or O beads
  Every other board set is X or O's turn only
 Refactor ugly large functions
 Optimize the symmetry tests?

About

Little 1 file python projects

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages