ricea / hw6

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Homework 6

  1. Use github fork to make your own repository for your changes.
  2. Use git clone to clone your repository to your local computer.
  3. Create a new Google Cloud project using gcloud projects create --set-as-default your-awesome-bot-name.
  4. gcloud app deploy python/ or gcloud app deploy go/ to deploy your app.
  5. Add the appspot address to the "Reversi Players" sheet
  6. Modify the source code to change the way a move is picked
  7. Re-deploy the app
  8. Repeat steps 7 and 8 until you have a very clever AI :)
  9. 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!
  10. Email step2019-homework and your mentor with your github repository link.

Using reflector.go

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 your hw6 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.

About


Languages

Language:Go 68.3%Language:Python 31.7%