hamadmarri / four-in-row-in-javase Goto Github PK
View Code? Open in Web Editor NEWThis project is a four in row game that has been written in Java
This project is a four in row game that has been written in Java
===================== four-in-row-in-JavaSE ===================== This project is a four in row game that has been written in Java The algorithm that I used is min-max algorithm after that I have added alpha-beta functionality to reduce the number of nodes generated. In this project the user able to set the depth since the algorithm uses depth-first search. choosing depth to be 7 is the best in terms of memory performance. /////////////////////// program running /////////////////////// 0: you play first, 1 computer play first: 1 enter max depth: 7 | | | | | | | | | | | | - - - - - - - 0 1 2 3 4 5 6 computer is thinking ... computer played: 3 Created Nodes: 264415 took(0.454s) | | | | | | | | | | | O | - - - - - - - 0 1 2 3 4 5 6 your turn, type a column number: 3 | | | | | | | | | X | | O | - - - - - - - 0 1 2 3 4 5 6 computer is thinking ... computer played: 2 Created Nodes: 318429 took(0.393s) | | | | | | | | | X | | O O | - - - - - - - 0 1 2 3 4 5 6 your turn, type a column number: 4 | | | | | | | | | X | | O O X | - - - - - - - 0 1 2 3 4 5 6 computer is thinking ... computer played: 1 Created Nodes: 473208 took(0.367s) | | | | | | | | | X | | O O O X | - - - - - - - 0 1 2 3 4 5 6 your turn, type a column number: 0 | | | | | | | | | X | | X O O O X | - - - - - - - 0 1 2 3 4 5 6 computer is thinking ... computer played: 3 Created Nodes: 368927 took(0.359s) | | | | | | | O | | X | | X O O O X | - - - - - - - 0 1 2 3 4 5 6 ...
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.