GithubHelp home page GithubHelp logo

ofrelord / dominoes-cw Goto Github PK

View Code? Open in Web Editor NEW

This project forked from carlosmizabi/dominoes-cw

0.0 0.0 0.0 168 KB

Java: Dominoes Game - Msc Computer Science: Object Oriented Programming Module Coursework

Java 100.00%

dominoes-cw's Introduction

Dominoes-OOP Java Coursework

Dominoes Game - Msc Computer Science: Object Oriented Programming Module Coursework

The objective of the assignment was to implement a game of dominoes for 2 players. The main game play driver was provided by professor with the rules of the game already provided. I had to implement the computer player, an interactive players and a basic user interface. The interfaces for the players and user interface were provided in order to work with the driver.

##Requirements:

The computer player can be as complex as one wants.

The interactive player must be able to choose the dominoes bone from their hand and choose which end to play.

The UI must:

- Mechanism to set number of points to win.
- Mechanism to choose players ( comp vs comp, interactive vs comp, interactive vs interactive)
- Mechanism to start a new game at any time.
- Show current round of the game.
- Show number of bones the computer player is holding.
- Show the bones for each interactive player.
- Show number of bones in boneyard.
- View of bones on the table.
- Mechanism to draw bones from the boneyard.
- Mechanism for interactive player to pass its turn.
- Show number of point for each player.
- Show who wins a round.
- Show who wins the game.
- Display Error message on invalid move.
- Implementation of player must be in package dominoes.players
- All other file in the dominoes package.
- Each class on own source file.
- Correct usage of field and method access modifiers.

dominoes-cw's People

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.