Skip to content

AI bot & the 2-player & Online & Offline board game "Game of the Amazons" by Delphi

License

Notifications You must be signed in to change notification settings

okbach/Amazons-Game-Board---DELPHI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Amazons-Game-Board--DELPHI

Made by delphi 10.4

Introduction

Amazons is a many-faceted game. The game set typically used to play Amazons is a draughts board of size 10 × 10, four white and four black chess queens (called amazons), and a supply of go pieces of one colour (called arrows). The starting position and a first move of white are shown in Fig. 1. A move consists of two steps: (1) the player chooses an amazon of his colour and moves it like a chess queen diagonally, vertically, or horizontally as far as he prefers, provided that no obstacle (another amazon or an arrow) blocks the way; (2) the amazon played has to throw an arrow. Arrows also move like chess queens. They stay at their destination square for the rest of the game and are represented by black squares in the other figures of this article. The players move alternately until one player can no longer move. This happens after at most 92 moves. The player who makes the last move wins the game. A challenging problem concerning the rules of amazons is as follows: Should white’s advantage of making the first move be compensated by a komi and if so, by how many points? We will discuss two possible komi rules in more detail in Section 8 of this article. I first heard about amazons at a youtube on cA final game with Elwyn Berlekamp (Amazons) - Numberphile channel : Numberphile Topics about msri mathematics ... . I was fascinated by the deepness and subtlety of ‘simple’ positions in amazons that have been analysed by Berlekamp , Snatzke , Müller and Tegos. Inspired by discussions with Müller about his computer program ARROW and my experiences of playing amazons I started to write the computer program AMAZONG. AMAZONG has won the amazons tournaments at the seventh Computer Olympiad in Maastricht in 2002 and at the eighth Computer Olympiad in Graz in 2003.

AI bot & the player & Online & Offline board game "Game of the Amazons"

  • This is FMX project it can run on almost os: Windows,Linux ... etc and on Phones: Android,IOS ...etc
  • Tested in: Windows and Android

AI-BOT {minimax algorithm}

  • Play against friends or Bots(AI).
  • The Bots are using improved Alpha-beta-burning algorithm to find next move and simple heuristic function.
  • Each game has massive number of odds so the max depth is 3.

heuristic

And heuristic function It adds a point for each step the player can move to

Effects

  • Some visual and sound effects Like player transmission.
  • GlowEffect has been used in this project

Simple Board Game Engine

  • This game designed by simple game engine builded by me and included in engineboard.pas
  • engineboard.pas include set of functions that may help you build any board game ex: chess,go ...

PLAY ONLINE

  • Simple active Server to play online against friends or random people
    • This method is based on:
      • IDHTTP component
      • Client destination
      • PHP file organizing engine
      • HTML,JS for chatting see assets/server_side file

I promise more detailed explanation and more clean code just need a little support

Download the game link and more explanation --> https://play.google.com/store/apps/details?id=com.strdz.Amazons_Siege_ads&hl=en

A powered by Delphi badge and a link to the Delphi product page

https://www.embarcadero.com/products/delphi