Giter Site home page Giter Site logo

mapleomok's Introduction

MapleOmok

MapleOmok is a recreation of the MapleStory Omok mini-game written in python/pygame.

Installation (Development)

  1. Install Python 3.11+ (Make sure to check "Add python.exe to PATH")

    image

  2. Run start.bat file in the project file.

User Interactability

When you first launch the game, you can click "Play Game" and you'll be tossed into the game with an AI with a minimax depth of 5. In order to win the game, you must match 5-in-a-row much like tic-tac-toe's 3-in-a-row.

See Gallery section for visual images of the game and buttons.

Code Structure

The current code structure follows a Component-Scene System. This means that Scenes contains components to be rendered and Components represent those objects that are rendered into the game. Here is a diagram showing that visually. It is good to note that Components can contain other components.

image

  • The assets folder contains all images, fonts, sounds related to the game and are used to be rendered into the game for visual effects.
  • The components folder contain all the Abstract classes for defining said Components of the game.
  • The interactables folder contains a button class which is re-used throughout the game to create interactable buttons given a callback.
  • The scenes folder contains all the various scenes which HOLD the components and are rendered in the main game loop.

Finally, the most important folder is the game folder which contains the entire logic of the game AND the AI code. The minimax feature can be found in opponent_ai.py file and contains the actual minimax algorithm and evaluation functions. And any further optimization techinques (1D Array, Proximity Searching, etc...) can be found in omok_board.py mainly in the def __init__() method which instantiates many of the data structures used in creating this project.

Gallery

MainMenu Game WinScene

Project Report / Data / Evaluation

You can find it here

Winrate image

mapleomok's People

Contributors

bratah123 avatar

Watchers

 avatar

mapleomok's Issues

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.