arujjval / tic-tac-toe

A simple tic-tac-toe game and a great way to take part in Hacktoberfest 2024.
https://arujjval.github.io/tic-tac-toe/
MIT License
6 stars 30 forks source link

[FEATURE] <The color of the result should match with the color of the current player> #58

Open Pujan-khunt opened 1 month ago

Pujan-khunt commented 1 month ago

Is this a unique feature?

Is your feature request related to a problem/unavailable functionality? Please describe.

Currently, x is associated with neon blue, and o is related to neon pink.

The problem is that when x wins the result is displayed that "x wins" in neon blue color which is not the color associated with x.

Proposed Solution

The solution for this problem is to change the color of the result displayed on the screen according to the result of the match after it is finished.

Screenshots

Before : image

After: image

Do you want to work on this issue?

Yes

If "yes" to above, please explain how you would technically implement this (issue will not be assigned if this is skipped)

I will change the JS and CSS files such that when the game is finished the color of the result will be based on the winner.