Giter Site home page Giter Site logo

connect-four's Introduction

Connect four AI algoritm

프로젝트 설명

  • connect four 게임을 플레이하는 프로그램입니다.
  • Game tree search algorithm와 Rule based을 이용한 AI를 구현하였습니다.
    • 사용한 기법
    • Mini-Max algorithm
    • Alpha-Beta pruning
    • Partial tree
    • Heuristic function
    • Iterative deepening
    • Dynamic programming

이용 방법

  1. 사용자가 번갈아가며 진행합니다. 선공은 'O', 후공은 'X'로 표시됩니다.
  2. 원하는 column number를 고르면 board에 표시가 됩니다.

개발 환경

  1. 언어 : Python 3.7.3
  2. OS : Mac OS, Windows 10 등

파일 설명

  • play.py : connect four 게임을 플레이하기 위해 기본적으로 실행하는 파일입니다.
  • board.py : connect four 게임을 하기 위해 board에서 이루어지는 기능들을 구현한 파일입니다.
  • heuristic.py : heuristic value를 계산하는 파일입니다.
  • gameTree.py : connect four에서 최적의 수를 두기 위한 game tree를 구현한 파일입니다.
  • rule.py : rule based 방식에 사용되는 rule들을 구현한 파일입니다.

프로젝트 개발자, 참고 사이트

connect-four's People

Contributors

yoon-young-il avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.