Giter Site home page Giter Site logo

sun-chokdi's People

Contributors

adit19shah avatar advait2205 avatar devchoganwala avatar dhi13man avatar kfkonrad avatar meetsable avatar vidhibadrakiya avatar

sun-chokdi's Issues

Absence of Reset button after the game ends

Is your feature request related to a problem? Please describe.
Currently, after completion of game, we need to randomly tap on some cell to reset the board. This does not create a good user experience since a first time user won't know how to reset board after the game ends.

Describe the solution you'd like
After finishing game there should be a reset button to reset the board for playing again.

Make Different Activity for beginning the game

The problem.
Currently there's a window on the same activity that begins the game, but this restricts us to add more features and a menu.

Solution
Make a new activity that is shown when the app is started and add a button that sends us to the main game activity.

Optimize for loop with Arrays.fill() method available in Java

Describe the bug
In the current code, we are using a for loop to reset the board for new game.

Expected behavior
The for loop can be avoided by using Java's Arrays.fill() method.

Where to start ?

for(int i=0;i<gameState.length;i++){
gameState[i]=2;
}

Replace this for loop with a single call to Arrays.fill() method.
The documentation about Arrays.fill() method can be found here.

Convert array declaration to Java-Style from C-Style

Describe the bug
The array winPositions defined to use the winning positions is currently defined in C-style format.

Expected behavior
The array winPositions should be converted to Java-Style array.

Where to start ?

int winPositions[][]={{0,1,2},{3,4,5},{6,7,8},

Changing int winPositions[][] to int[][] winPositions   would convert the array declaration to Java-Style.

Online Mode

How about a game vs real player....

I can create a online multiplayer game of Sun-Chokdi....

Design an attractive icon/logo for this app

Is your feature request related to a problem? Please describe.
The app currently has the default Android Studio image as its icon. That icon isn't describing what the app is about.

Describe the solution you'd like
There should be an appropriate icon that symbolizes something about the app. In this case, it could be something related to Tic-Tac-Toe game.

Create a Readme File describing current working of the project

Is your feature request related to a problem? Please describe.
The project currently does not contain any readme file thereby making it difficult to know more about the project.

Describe the solution you'd like
Add a concise readme file describing current working of the project with screenshot of the only Activity present in the app.

Return to Main Menu

The problem
The option to return to main menu is only available on clicking the corner three dots.
But after the game is over, the three dots are not accessible. so there is no option for returning to the main menu.

A possible Solution
Add a button for this below the buttons of [ X ] and [ O ] as indicated in the picture.
WhatsApp Image 2021-10-21 at 21 54 16

To choose starting player as X or O

Is your feature request related to a problem? Please describe.
Currently, the game does not give any option(s) and directly starts with 'X' as the first token.

Describe the solution you'd like
There should be an option to choose the first token as 'X' or 'O'.

splash screen

Is your feature request related to a problem? Please describe.
When app starts it directly leads to the game no splash screen.

Describe the solution you'd like
Splash screen as logo and name of the app .

Example: Splash Screen in Amazon App
image

Making a better view....

Changing the UI to a proper format......
Make the game more interactive by giving it a proper look...

Add Dark Mode

Is your feature request related to a problem? Please describe.
No theme changing options for user

Describe the solution you'd like
Add a theme selection button at the top to change themes.

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.