Giter Club home page Giter Club logo

blokus's Introduction

Blokus

This project was a combination final for AI and Software Design. Blokus is a board game for 2-4 players. The pieces looks sort of like tetris pieces, and are made up of one to five blocks. The goal of Blokus is to end up with fewer blocks in your hand than any of your opponents (learn more).

MODEL

The board keeps track of the color each of the 400 spots. These are set by the controller during gameplay and then this is output to the display so the players can see where spots have been placed.

The Agents

LAgent2

This is Leah and Avery's player. She is demonstrably the best, and uses a 3-ply minimax search to find the best move.

AGent

This is Adrian and Gil's AI Player. How it works is a mystery.

StupidAgent

Our default stupid agent, who isn't actually that stupid. This agent goes through all of its pieces in a specific order, which happens to be an order that favors playing larger pieces first, and plays those pieces in the first legal move it finds, flipping and/or rotating them if necessary. As we discovered, this is not a bad strategy.

How to Play

The controls! (This is also in the how to play.) Click and drag a piece to place it on the board Press space bar to flip and use the left and right arrow keys to rotate. Press enter to make your move. If you ever want to pass, press P. The game ends when all four players pass.

blokus's People

Contributors

ajaugust44 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.