/Dots-N-Boxes

건국대학교 인공지능 수업 Dots and Boxes 게임

Primary LanguagePython

Dots and Boxes Game

건국대학교 컴퓨터공학부 인공지능 수업 Dots and Boxes 게임 스크린샷 2023-11-06 오후 2 35 52

Make your own algorithm for the machine!

코드를 다운(clone) 받으면, 초기에는 머신이 랜덤으로 선을 긋습니다. 게임을 이기기 위해서 알고리즘을 생성해 보세요! 알고리즘은 machine.py 내부에 MACHINE class를 수정해야 합니다. 변수를 추가할 수도 있고, 함수를 추가할 수도 있습니다. 하지만 최종 결과는 find_best_selection을 통해 반환해야 한다는 점을 명심하세요.

If you download(clone) the codes, the machine select a line to draw randomly at the initial moment. You should make an algorithm for the machine to win the game! For this, you have to modify the MACHINE class in the machine.py. You can add some variables, or even make a new function in it. But note that you have to return the final output via find_best_selection function.

How to play the game?

  • Prepare the Environment
# Install tkinter
pip install tk

# Clone the repository
git clone https://github.com/JONHYOJIN/Dots-N-Boxes.git
  • Play the GUI
python main.py