Coder Social home page Coder Social logo

guess-the-number's Introduction

🏡️🌸 Welcome To My Github Profile 🌸🏡️

Stars Followers STI Alumni Information Technology Dribble

πŸŽ’ Simple Personal Projects

github-readme-streak-stats github-readme-streak-stats github-readme-streak-stats

✏️ Contributed Projects

github-readme-streak-stats github-readme-streak-stats github-readme-streak-stats

πŸ”₯ Streak stats

DenverCoder1's streak

πŸ› οΈ Technologies Used

πŸ‘¨β€πŸ’» Programming Languages

HTML CSS JavaScript Markdown Python Java C#

πŸ“š Frameworks and Libraries

Bootstrap Wordpress JQuery Codeigniter

πŸ—„οΈ Databases and Cloud Hosting

GitHub Pages Repl.it Firebase Heroku

πŸ’» Software and Tools

Android Studio Visual Studio Code Sublime Text Intellj Visual Studio Netbeans Edge Adobe Photoshop Git Github Microsoft Office

🌐 Operating Systems

Windows Linux Ubuntu

πŸ“Š Github Stats

πŸ±β€πŸ’» Github Profile Stats

Jookie's Github Stats Jookie's Top Languages

⚑ GitHub Activity

Jookie262's Activity Graph

πŸ₯¬ Spotify Music

guess-the-number's People

Contributors

jookie262 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

guess-the-number's Issues

Confirm Box

When the user clicks the back to menu button, confirm box must appear to avoid any user accidentally stopping the game.

Add All the Assets Needed for the Project

  • For Menu
    • Background
    • Text Logo
    • Play Button
    • High Score Label Image
  • For Play
    • Status Text (Too High, Too Low, Invalid, Correct, Out of Range )
    • Back to Menu Button
    • Min and Max Label Image
    • Guess The Number Label Image
    • Enter Button
    • Continue Button
    • Mystery Square ( For Revealing the Random Number )

Continue the Game

Once the user guess the correct number, he/she can continue the game until he/she decides to stop,

Create a Class for Handling The Score Files

  • Store the current score ( current_score.txt )
    • This is the score when playing the game
    • When clicking the play button, the score is always started from 0
    • When clicking the continue button the current score will be store plus the points in the current_score.txt file until you stop
  • Store the number of games played continuously (num_games.txt)
  • Store the high score ( high_score.txt)
    • If the current score is higher than inside score, then overwrite the file with the current score.
  • Display and Update the Score in Play Section
  • Display the Highest Score in Main Menu Section
  • Determine the High Score
    • If the the score is higher than inside the High Score txt, overwrite the file with new Score
    • If the score is the same, check the number of games played continuously
    • If the number of continuously play games is lower than inside the Hight Score txt, overwrite the file with new Score

Change the Status Image when the user enters a number

  • if guess > number: Too High
  • if guess < number: Too Low
  • if guess == number: Correct
  • if not a number: Invalid Input
  • if exceeds the number from 1- 50: Out of Range
  • Can be both done when clicking an enter button in screen and keyboard in JTextfield

Create a GUI

  • Create a Game Class that extends to JFrame to be use as the GUI for the whole program
  • Settings of GUI
    • Dimension: 350w x 660h
    • Fixed Size
    • Not Resizable
    • Center Screen
  • Call the Game Class inside the Main Class

Create a Scoring System

  • Must Contain Score and Attempts Variable
  • Scoring System
    • 1 attempt = 10 points
    • 2 attempt = 9 points
    • 3 attempt = 5 points
    • 4 attempts = 3 points
    • 5 attempts (and so on) = 1 point

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.