TIY-ATL-ROR-2015-Sep / assignments

0 stars 0 forks source link

Weekend Assignment 1 #58

Closed kingcons closed 9 years ago

kingcons commented 9 years ago

Assignment

Write a tic tac toe game as described here: https://github.com/TIY-ATL-ROR-2015-Sep/lectures/blob/master/wk01-ruby-basics/thu/questions.md

Submission

Post your code as a gist and leave a link to the gist in the comments of this issue.

sepehrvakili commented 9 years ago

https://github.com/heysep/tiy-homework/blob/master/tictactoe.rb

kingcons commented 9 years ago

Great work, and very nice to see that you titled at getting Minimax up and going. How much have you tested it? Did you get it working? I've got a "Negamax" implementation that's object oriented. It's a bit tricky but might prove fun reading if you're interested.

sepehrvakili commented 9 years ago

The minimax implementation was still off, but it was smarter than random computer! That would be cool to give it a shot!

kingcons commented 9 years ago

@heysep This code might interest you. There are also some decent tests in that directory. :) https://github.com/kingcons/tock/blob/master/ruby/supercomputer.rb

See also: http://redlinernotes.com/docs/talks/tock.html