- When a shape is put into the grid it hugs the border when I would like it to be a bit smaller than the spot it takes up. I also had to change the circle to a square otherwise the border of the table would wrap around the circle.
- If you click on the green square when the red square is queued up it will replace the green square.
- .circle{
background-color:#00CC00;
//border-radius: 100%;
width:90px;
height:90px;
}
.square{
background-color:#FF0000;
width:90px;
height:90px; - I noticed that whichever style is first is the one that will be replaced. I think both these things have something to do with CSS specificity but I don't quite know.
Friday, April 4, 2014
Tic Tac Toe
I got the game working for the most part but there are a couple of problems:
Subscribe to:
Post Comments (Atom)
Peaking ahead a bit, I can see that you solved whatever problems you were having with the display. Your current version looks awesome!
ReplyDeleteNow here is a real challenge:
Modify your game so that it can determine when there is a winner (or when there is a tie), and display something appropriate in each case.
You are correct. The problem is that you are adding both classes to the element, so the one that comes first wins.
ReplyDelete