Skip to content

nutthanonn/trichess-model

Repository files navigation

Work process

  1. เช็คกินตัวไหนได้ เก็บ Max priority (Queen ไม่กิน Pawn ใน 20 turn แรก)
  2. ถ้ากินอะไรไม่ได้เดินที่ปลอดภัย
  • เดินหลบ (ถ้าจะโดนกินจะเดินหลบโดยหากตัวที่จะโดนกินมีหลายตัวให้เดินหลบตามค่า Priority มากสุดก่อน)
  • เดินที่ที่ศัตรูกินไม่ได้ (เก็บตำแหน่งที่ศัตรูเดินได้ intersect ตำแหน่งทั้งหมดบนกระดานปัจจุบันของเรา)
  1. ถ้ากินได้และกำลังจะโดนกินตัวไหนมี Priority สูงกว่าตัวที่เราจะถูกกินมี Priority สูงกว่าจะเดินหลบไปที่ปลอดภัย

Usage

  • เปลี่ยน url ในไฟล์ main.py ให้เป็น url ของเกม

  • รันไฟล์ main.py โดยใช้คำสั่ง python main.py or python3 main.py

IMPORTANT NOTE: ใส่จำนวน Player ที่ต้องการ

Bug Fix

  • เปลี่ยน Import test เป็น import algorithm ด้วยครับบ

อาจจะมี bug อยู่นะเพราะไม่ได้ handle ทุก case

About

Trichess model use for Ai project

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors