fabiomiguel2000 / linesofactions Goto Github PK
View Code? Open in Web Editor NEWAssigment 1 for Course L.EIC029 Artificial Intelligence, FEUP LEIC 3rd Year 2nd Semester
License: Apache License 2.0
Assigment 1 for Course L.EIC029 Artificial Intelligence, FEUP LEIC 3rd Year 2nd Semester
License: Apache License 2.0
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 )
I have implemented Minimax but we also need alfa-beta cuts.
There is also a way to order our plays in order to maximize the number of cuts
In order to correctly implement 'Minimax'
we need the winner method on the board and not on game, because:
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
We need to create a method @ board.py to keep checking if gave is a Victory for a player
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
i don't like comments :(
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
move_vertical()
and move_horizontal()
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.