Giter Club home page Giter Club logo

bitsian-hangman's Introduction

Hang_BPHCian

Hangman game GUI implemented by a BPHCian for BPHCians In progress.

Running: Create a project Trial1 and store all the code files within trial1 package. Add the images to a folder named 'images'. Run!

About the code files: The code is split into classes such a way that each class inherits from the JFrame class, and represents 1 screen each. Trial1.java - is the started file that creates an object of the MainMenu class.

MainMenu.java - This is the class of the main menu screen, which leads to the Play Settings Menu, Badges, High Scores and Exit. It has the logo of BITS Pilani, and a picture of hangman. There is a mute button provided, but is not functioning yet.

Badges.java - This file creates the badges/achievements screen using a JFrame. It has the images of 8 badges currently. Initially, the grayed out images are displayed, and once the player unlocks the badges, they will be displayed in color.

PlayMenu.java - It provides JComboBoxes (drop down lists) for choosing Player Options like - Single Player/Multi Player; Classic/Timed; Categories - Faculties, Campus, Groups, Courses, Misc.

GameScreen.java - This file has the code for the main game screen. The alphabets are represented using buttons iwthout padding, that changes the color of text once clicked on.

InsertFileData.java - not yet used, will be used to enter the word list from WordList.txt into a SQL table

Improvements to be made: Pull requests are welcome. -> Enter the wordlist into a SQL table, and query for random words. -> Improve randomization algo, by adding a column called count to the table. Count should maintain the number of times the word has been called. Now the query should get the word with the given category with the least count. -> Add stats to the badges screen. Stats like - Total played time; Total deaths; Total words guessed; % Finished; Personal Best Score. Create a table for maintaing that data. -> Display animations/pop-ups when the player has won/lost/won a badge. -> Attempt to keep the game running, instead of 1 word per game. -> Use card layout, eliminate multiple JFrames. -> Add music and activate the mute button. -> Add sound effects. -> Make all screens resizable, by using LayoutManager. Currently, only Play Settings Menu screen is resizable. -> Implement timer - activated when Timer mode is chosen. -> Implement SP and MP games. -> Add words to the word list. -> Add Categories feature i.e choose words only from the chosen category, by querying for a random word where category is given. Add a label at the bottom of the screen to display the Categories feature. -> Add more badges and be able to scroll down that screen.

bitsian-hangman's People

Contributors

niloth-p 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.