mstc-da-iict / sun-chokdi Goto Github PK
View Code? Open in Web Editor NEWStandard 2-Player Tic-Tac-Toe Game
Standard 2-Player Tic-Tac-Toe Game
Is your feature request related to a problem? Please describe.
App does not show the user that which line was the winning one at the end of the game.
Describe the solution you'd like
App should display a line passing through the three symbols the made the player win the game at the end.
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.
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.
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 ?
Sun-Chokdi/app/src/main/java/com/adit/tictactoe/MainActivity.java
Lines 84 to 86 in 0b505d8
Replace this for loop with a single call to Arrays.fill()
method.
The documentation about Arrays.fill()
method can be found here.
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[][]
to int[][] winPositions
would convert the array declaration to Java-Style.How about a game vs real player....
I can create a online multiplayer game of Sun-Chokdi....
Is your feature request related to a problem? Please describe.
Two players are needed to play the game. No option for computer as an opponent.
Describe the solution you'd like
Add algorithm to let computer decide and make moves and change the UI programatically.
Minimax algorithm can be used.
Heres an explaination for the algorithm: https://www.youtube.com/watch?v=trKjYdBASyQ&ab_channel=TheCodingTrain
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.
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.
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.
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'.
Changing the UI to a proper format......
Make the game more interactive by giving it a proper look...
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.