Giter Site home page Giter Site logo

shooting-dice's Introduction

Shooting Dice

A C# Exercise

The Story

You are building a dice game. Like any good game, your game should have players. But you don't just want a single kind of player. No. You want your game to be interesting, so you want many types of players.

The goal of this exercise is to create classes to represent those various types of players and to write a Program class that will test them out.

The Setup

  1. Clone this repo.
  2. Create a new repo under your github account.
  3. Change the remote origin of the local repo to your new github repo.

The Task

  1. Read the existing code. Add or modify comments as needed to help you understand it.
  2. Add code to each "Player" class to make it behave the way it should.
    • See the comment above each class for instructions.
    • Complete the classes in the order specified below.
  3. After completing each class, use it to create one or more Player objects in the Main() method. Write code to test these new objects.
  4. Add the new Player object(s) to the players list, so they will be passed to the PlayMany() method.

NOTE: Make sure to FULLY TEST each class immediately after you write it. Do NOT write all the classes before you test.

You should complete the classes in this order:

  1. SmackTalkingPlayer
  2. OneHigherPlayer
  3. HumanPlayer
  4. CreativeSmackTalkingPlayer
  5. SoreLoserPlayer
  6. UpperHalfPlayer
  7. SoreLoserUpperHalfPlayer

shooting-dice's People

Contributors

askingalot avatar davis-dyer avatar joshdbarton avatar

Watchers

 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.