bymayanksingh / connect4

🎮 It is a two-player connection game in which the players first choose a color and then take turns dropping one colored disc from the top into a seven-column, six-row vertically suspended grid. The pieces fall straight down, occupying the lowest available space within the column, user wins by forming row of four of same color
MIT License
23 stars 27 forks source link

Environment to create new AI agents #41

Closed Pabloo22 closed 3 years ago

Pabloo22 commented 3 years ago

The purpose of this changes is to have a more appropiate and tidy environment to develop new AI agents.

New files

New feautures:

In ConnectGame:

New methods:

In GameBoard:

The changes made in this class have two objectives. The first one is to improve efficient (very useful for the future AI agents). The second one is to be able to know which squares verified that if a player had a piece in a given coordinate he would win (win squares). This will be very useful for future AI agents that calculate the heuristic of a board .

New attributes
Methods changed
New methods
bymayanksingh commented 3 years ago

can you squash multiple commits in one? @Pabloo22

Pabloo22 commented 3 years ago

I was trying to do that but I don't know how to use git, so it would take me a while to learn how to do that. I have deleted this repository and I will create another pull request with only 1 commit.

Pabloo22 commented 3 years ago

I was trying to do that but I don't know how to use git, so it would take me a while to learn how to do that. I have deleted this repository and I will create another pull request with only 1 commit.

You can delete this branch