Coder Social home page Coder Social logo

scala-game's Introduction

A simple game to try Scala.

The goal of the game is to deliver the princess.

The game will have 4 classes:

 - Player
 - Enemy
 - Boss
 - Princess

Some rules:

 - Enemies can only beat the player
 - Bosses can beat enemies and the player
 - The princesses can either give kisses or slaps

What the player will be able to do:

 - He has a quantity of lives and gold
 - He can win and loose gold
 - He can only loose lives
 - He can beat enemies and bosses
 - He can give kisses to princesses
 - He can enter a castle
 - He can die

Game rules:

 - The player has one in five chance to fall during the first jump
 - The player has one in three chance to fall in the second hole
 - The player has one in four chance to be killed by the first enemy
 - The player has three in ten chance to enter the castle without alerting guardians
 - The player has one in two chance to beat the boss
 - The player has one in three chance to be slapped by the princess
 - The player starts with 10 lives
 - Falling, being attacked or being slapped removes one life
 - The player has 2 tries to enter the castle, or he loose one life and restarts

To launch the game: sbt run

scala-game's People

Contributors

lra avatar

Stargazers

 avatar

Watchers

 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.