Code edit (16 edits merged)
Please save this source code
User prompt
create the candies only after mode is selected
User prompt
add a gui text in front of each button 1 and 2
Code edit (7 edits merged)
Please save this source code
Code edit (6 edits merged)
Please save this source code
User prompt
make the one and two PlayerText bold
Code edit (18 edits merged)
Please save this source code
Code edit (4 edits merged)
Please save this source code
User prompt
When In 2 players mode computer is controlled by mouse y like for the player
User prompt
fix event up and down only work for 1 player
User prompt
fix turn is not changing
User prompt
fix computer doesn't play in 1 player mode
Code edit (1 edits merged)
Please save this source code
User prompt
current code of up and down events is for 1 player mode, add the tests playerMode === 1
Code edit (1 edits merged)
Please save this source code
User prompt
log all the steps required to implement up & down events in 2 player mode
User prompt
in 2 players mode, hide player when it's the 2nd player turn
Code edit (2 edits merged)
Please save this source code
User prompt
in 2 players mode, add a big label in the bottom quarter : "Player 1 Wins" if win, else "Player 1 Boom"
Code edit (3 edits merged)
Please save this source code
User prompt
Fix Bug: 'Uncaught ReferenceError: win is not defined' in this line: 'handleGameEnd(self, win, 2);' Line Number: 450
User prompt
Fix Bug: 'Uncaught ReferenceError: win is not defined' in this line: 'handleGameEnd(self, win, 2);' Line Number: 450
Code edit (4 edits merged)
Please save this source code
User prompt
add a background color to resultText
Code edit (4 edits merged)
Please save this source code
===================================================================
--- original.js
+++ change.js
@@ -400,9 +400,9 @@
playerSelecting = false;
stage.off('move', handleSelection);
removeCandies(candyCanes, self.selectedCandiesCount);
if (candyCanes.length === 0) {
- handleGameEnd(self, playerTurn);
+ handleGameEnd(self, !playerTurn);
return;
}
self.selectedCandiesCount = 0;
if (debug) {
@@ -411,8 +411,9 @@
setSelectionPositions(self, candyCanes.length > 0 ? candyCanes[0].y : 0);
playerTurn = !playerTurn;
if (playerTurn) {
fade(self.player, 500, true);
+ fade(self.computerPlayer, 500, false);
} else {
fade(self.player, 500, false);
fade(self.computerPlayer, 500, true);
}
a christmas wooden board Background image. High contrast. No shadows.
a vertical christmas wooden board with snow, and decorations on its sides Background image. High contrast. No shadows.
a photo-realistic white and red vertical candy stick slice Single Game Texture. No background. High contrast. No shadows.
a horizontal santa's arm with a white glove and the index pointing to the right Single Game Texture. No background. High contrast. No shadows.
an green hairy grinch's arm, pointing in the horizontal direction, the index finger pointing to the left Single Game Texture. No background. High contrast. No shadows.
a photo-realistic white and red twisted candy stick slice in vertical position and with an extinguished wick. At its center, a simple white rectangular "TNT" sticker in the same direction as the stick Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a top view of a TNT explosion fire Background image. High contrast. No shadows.
A funny Santa Claus disheveled and covered by black soot after an explosion. stary night. High contrast.
a futuristic white robot arm. horizontal direction. the index finger pointing to the left. Single Game Texture. No background. High contrast. No shadows.
A old super hero Santa Claus holding a candy cane in his hand High contrast.
frame of an empty christmas themed popup with a decorated border User interface
a single mat rounded empty button User interface