sarmadhamdani02 / WebGames

This repo contains some web-based games, feel free to contribute 🙂 you can either create new games or contribute by solving issues.
https://webgames02.netlify.app/
9 stars 23 forks source link

Add themes to the Tic Tac Toe game #11

Closed sarmadhamdani02 closed 1 year ago

sarmadhamdani02 commented 1 year ago

It would greatly enhance the gaming experience to introduce various themes to the game. To achieve this, we can implement multiple color schemes for both the background and the game panel (identified by the 'game-container' class in the HTML) on the main game screen (identified by the 'main' class).

One of the possible solutions can be creating arrays of colors for the background as well as the game panel ("game-container" class in HTML) in a Javascript file and using Math.random function to get different index numbers each time and so having different background colors each time game starts.

Make sure the colors don't spoil the overall theme of the game.

SandipGyawali commented 1 year ago

I can work on this issue. @sarmadhamdani02 can you assign me this issue?

sarmadhamdani02 commented 1 year ago

Sure @SandipGyawali 🙌