Code Monkey home page Code Monkey logo

go_implementation's People

Contributors

astrieanna avatar brilee avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

go_implementation's Issues

Stone allowed to be placed in a suicide position

@brilee , I was testing out the go_naive.py implementation and ran into a case that I am confused about and was hoping you can clarify.
Example suppose I configure an 9 by 9 board and run the following sequence:

pos = Position.initial_state()
pos = pos.play_move(0, 'O')
pos = pos.play_move(1, 'X')
pos = pos.play_move(9, 'X')
pos = pos.play_move(0, 'O')

As expected after the third move X kills O and captures the position. But then on the fourth move I am allowed to place the O back into the 0th position. I would have thought this fourth move would throw an illegal move exception or such, right or am I missing something? Additionally I note the score changes from 81 to 79 from the third to fourth move respectively.

FYI, I am new to the game of Go, so please excuse me

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.