Git Product home page Git Product logo

linesofactions's People

Contributors

fabiomiguel2000 avatar rapatachos avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

linesofactions's Issues

Diagonal movement

Horizontal and Vertical movement is already working, still we need to implement the same logic for the diagonals witch is a little bit more difficult.
Maybe the best approach is to split into 2 diagonals,
--> D1: (up, left) corner to (down,right) corner
--> D2: (down, left) corner to (up,right) corner

Diagonal movement

Horizontal and Vertical movement is already working, still we need to implement the same logic for the diagonals witch is a little bit more difficult.
Maybe the best approach is to split into 2 diagonals,
--> D1: (up, left) corner to (down,right) corner
--> D2: (down, left) corner to (up,right) corner

Winner method needed on board, not on game

In order to correctly implement 'Minimax'
we need the winner method on the board and not on game, because:

  • the game.py refers to the actual game we are playing vs the bot
  • the bot needs to simulate plays and he does this on board.py (he needs to check if there is a winner)

so we need to transfer that logic to the board, and control the flow of the game at main.py

I added TODO on dev-minimax branch

Evaluate board method ( preparation for MINIMAX )

In order to apply MINIMAX we need a method that takes the current board and evaluates how a play is.

For example, in checkers a good play would be if the opponent loses a piece right?
Well, in our case the winning condition is to have a blob of pieces all connected
( within a square from same color neighbors )

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.