AsymmetricGobang
1.This is a Gobang variant game with asymmetrical victory conditions and pieces, where you are the black side and the bot is the white side.
2. In terms of piece types, white will play a random red, yellow, blue, green piece with the numbers 1 to 5 on each turn, while black will only have black pieces.
3. In terms of victory conditions, as with traditional Gobang, the white side only needs to form five pieces, but the black side's victory condition is to form the Target shape of each game (3 pieces with random colors and numbers).
4.When the black square is placed, count the colors of all the white square pieces in the 3*3 area centered on this piece, select the color with the largest number of colors, if the number of colors is the same, choose red > yellow > Blue > green. After selecting the color, select the piece with the largest number in this color and participate in the piece that forms the Current shape
5.Current has a capacity of 6. When a new piece is added, squeeze out the leftmost piece and put in this piece. If the color and number of the newly added piece are already included in Current, the color of the piece is changed by: yellow to red, blue to yellow, green to blue, and red to green. The color can only change once per turn, starting with the two same pieces on the leftmost side of the Current.
6. White's AI logic is written according to traditional Gobang, that is, White does not know black's victory conditions, so although black's victory conditions are in the shape of chess, it can still threaten White's actions by forming a 5-pieces.
7. Black wins when Target's shape is included in Current
Published | 20 hours ago |
Status | Released |
Platforms | HTML5 |
Author | Magnesiumteng Machine |
Genre | Strategy, Puzzle |