Coder Social home page Coder Social logo

eduardo-lp-silva / block-it Goto Github PK

View Code? Open in Web Editor NEW
0.0 4.0 0.0 363 KB

Console application/game based on "Bloqueio" mobile game developed in the Artificial Intelligence (IART) class.

Java 99.85% Shell 0.15%
java-game artificial-intelligence minimax

block-it's Introduction

Block-It

Console game based on the mobile app "Bloqueio". It consists of a map (which can be customized) dotted by small islands or platforms and two players of different colors. The objective of these players is to reach the border with the same color as them before any other player.
To accomplish this, in each turn they can either move one space or place a barrier (3 spaces wide) to block the opponent's path. The number of barriers available to each player is limited and it too can be customized (it also depends on the map's size).
However, the barriers have some restrictions to where they can be placed: they cannot be adjacent to other barreirs and the central piece of each one can't be next to an island.

All of these rules can also be consulted in-game.

Each player can pick their color and it can either be a human player or a bot. In the case of the latter, two difficulties can be chosen, each one with a different evaluation function. The main algorithm remains the same for both though, that being Mini Max.

Interface

image

Each player is represented by the capital letter of their color and it's barrier by the lowercase equivalent. Each line and column is numbered in order to help barrier placement. Each one is represented by a row/column of 'X's.

Usage

Either run the BlockIt.jar provided or run the game.BlockIt class without arguments.

block-it's People

Contributors

eduardo-lp-silva avatar tiagoacastro avatar

Watchers

James Cloos avatar Mariana Costa avatar  avatar  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.