Rather inspired by today’s Neural Networks exam, and Anoop’s amazing tutoring on the topic, I created a simple MENACE emulator in Python. Both the source and the Win executable are available below, and licensed under an MIT/Academic Free License. In other words, do anything you want with it, and try to give me credit π
A simple menacing
in a console would show you a tic-tac-toe board with a player choice to make. menacing --state
shows the current state of the matchboxes. menacing --debug
shows how the program thinks as it plays the game. menacing --train [iterations]
allows you to train the matchboxes using a computer vs. computer mode.
If you download the Windows executable bundle, go to the dist folder to find menacing.exe
. It’s a console application, so you’ll have to run cmd.exe
, navigate to this folder and then execute it for maximum satisfaction. If you’re downloading the source, run menacing --init
first.
I’d love it if you post your experiences with menacing here. Thanks π
How do you train it from a dumb saved matchbox? Initially play to lose (say for about 10 tries, and then play to win always, I find this to be the best method to train). Or use --train
and your work is done for you π
Learn more about MENACE here and here.
The Windows bundle is slightly out of date as of this posting, should be resolved soon. So get the source for the latest.
Source at Github
Leave a Reply