- Use github fork to make your own repository for your changes.
- Use
git clone
to clone your repository to your local computer. - Create a new Google Cloud project using
gcloud projects create --set-as-default your-awesome-bot-name
. gcloud app deploy python/
orgcloud app deploy go/
to deploy your app.- Add the appspot address to the "Reversi Players" sheet
- Modify the source code to change the way a move is picked
- Re-deploy the app
- Repeat steps 7 and 8 until you have a very clever AI :)
- eventually push your awesome clever AI to github.
- If you want to keep it secret until Thursday night, that's fine.
- Sharing and talking about your ideas is a good way to improve your designs, so you're encouraged to share!
- Email step2019-homework and your mentor with your github repository link.
You can use this "reflector" program to make a locally running dev_appserver instance act like a human player. This way you don't have to deploy the whole app to have it run a whole game between AIs.
To use it:
- Download and install Go if you don't have it already.
- Start your bot with
dev_appserver.py go
ordev_appserver.py python
. - Start a new game on https://step-reversi.appspot.com with a "Human (or Local bot)" selected as one of the players
- Copy the command displayed at the bottom of the game viewer page like
go run reflector.go "https://step-reversi.appspot.com/view?gamekey=fOoBaR"
and paste it into a teminal window in yourhw6
directory.- (but pasting your actual viewer URL there -- fOoBaR is not a real game ;)
- Your bot will play as the human(s) in that game.