Select Page

For my assignment I decided to do a mini game where you had to match all of the buttons to the same color in order to win, so I asked Copilot:

“can you please make a mini game where you can click on buttons that say click me and they all change color and the game is where you have to click all the buttons to the same color to win the game is that possible?”

It did give me a game but the code didn’t stop the game nor reset it, so I asked:

“this works, but can you make a winner background visual when all the colors are matched, and can you also add a timer that resets when the reset button is pressed?” This did work and I wanted to change it up so I asked:

“can you add a header that says “Click Me Matching Game!!” please make sure that this header changes color by letter and the color changes every 2 seconds?”

However, when this happened I couldn’t click out of the winner screen to play again and so I asked it to fix the problem by saying:

“i love it but when the “you win” screen comes up I cant click out of it to reset the game, is there anyway u can fix that?”

This was the last request I had asked copilot because I was happy with the result but I couldn’t apply to WordPress for it function properly, so I put the code it gave me into Codepen and there it did work. Here is the link to the game:

 I honestly go back and play when I have the chance, I did notice that clicking on the buttons can be a bit slow, I mean that I have to double click the button to change colors. Looking back, I would see if it is able to add levels that add more colors each round to increase difficulty. I would also add a log of what the players’ highest and lowest score.