Giter Club home page Giter Club logo

reach_mastermind_project's Introduction

Mastermind Game Project

This game requires a player to guess a 4 digit combination randomly generated by the computer. The player has 10 attempts to guess correctly. During the game, the player may retrieve previous attempt information. Information includes player combination guess, number of digits matched, and number of digit positions matched. If player is successful in matching the combination, player is awarded a randomly generated quote (motivational, inspirational, wisdom, etc.).

Getting Started

Environment setup regarding application development logistics.

  • IDE:

    • Visual Studio 2019
  • Framework:

    • .NET Framework 4.7.2
  • Language:

    • C#
  • Output Type:

    • Windows Application (.exe)
  • Additional Library Packages Implemented:

    • Microsoft.AspNet.WebApi.Client
    • Newtonsoft.Json
    • Extended.Wpf.Toolkit
    • XamlAnimatedGif

Application Development

Application features and specs

  • User Interface

    • 4 number combination to be guessed
    • number of remaining attempts visible
    • view history of attempt guesses including number of matched digits and number of matched digit positions
  • Application Specifications

    • numbers can be duplicated
    • number range is from 0 to 7
    • Using Random Number Generator API (https://www.random.org/integers) to provide computer number combination.
  • Extensions

    • Random quote generated using API (https://api.forismatic.com/api/1.0/?method=getQuote&lang=en&format=jsonp&jsonp=?) when player is successful at decoding the combination.
    • User Hint (updated 3/20/2020): User can choose to receive a hint in the form of receiving a number not in the combination. User can get up to a maximum of 3 hints. In future update, receiving a hint will affect number of attempts left.

Application Structure

     See below for the flow chart depicting overall structure and flow of the application. It highlights visible and backend processes. The application begins at the Main Menu symbol.
     To develop Mastermind, the WPF application in visual studio serves as the foundation for the user interface. Various controls (mostly buttons) are implemented so that the user can interact and navigate through the game. The controls also send information to the backend to process API web calls, evaluate user input, and determine results.

Installing and Running Application

1. Clone or download project.

2. Open REACH_Mastermind_Project.sln in Visual Studio 2019.

3. Ensure that the library packages stated in Getting Started are installed and referenced.

4. The application can then be run in debug mode.

5. To view all game outcomes (especially with viewing the randomly generated quote when successful at guessing the combination) uncomment line 31 in the 03_NumberRequest class to view the API generated combination.

UI Screenshots

  • Main Menu

  • Game Main Window (Upated 3/21/2020)

  • Try Again Result Window

  • Fail Result Window

  • Success Result Window

  • Game Info Window

  • Guess History Window

  • Hint Window

reach_mastermind_project's People

Contributors

flyingturtle13 avatar

Watchers

James Cloos 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.