![]() ![]() It all started when Chrome implemented popovers in HTML so I wanted to challenge myself to create a game with just HTML. Creating the game in CSS is trivial - as I've proven when I created a In this post I'm going to show you how I created Tic Tac Toe (Noughts and crosses) with HTML, using one of those experimental features. Lemma.I love it when Chrome releases a new feature, I especially like it when it is experimental. ![]() The key idea is that if there were a draw position in 3\times 3 \times 3\times 3, then whenever we took a 3-dimensional subcube, the induced colouring would be a draw position on this subcube. The claim is that there is no draw position in 3\times 3 \times 3\times 3. ![]() Using the lemma below, the dedicated reader may verify that HJ^*(3)=3. The following elegant proof is due to Kerkko Luosto. But it is a bit easier to show that HJ^*(3)\leqslant 4. Equivalently HJ^*(k) is the least dimension in which k^n-tic-tac-toe cannot be a draw. A combinatorial line however is a sequence of n-tuples (elements of A^n for a finite A=^n contains at least one monochromatic d-line. According to these rules Player 1 won the game in the above cartoon. There are plenty variations and the most simple of them is played on a 3×3 grid and the player who gets 3 in a row/column/diagonal wins. The first player who manages to draw five of his symbols in a row, column or a diagonal wins (and no two symbols can be drawn in the same square). Player 1 (beginner) is the X-drawer and the Player 2 is the 0-drawer. The two players draw X:s and 0:s to the squares of a notepad paper. Usually the game tic-tac-toe is played on an infinite board (i.e. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |