01219245/javascript1/tutorial3
รุ่นแก้ไขเมื่อ 01:28, 27 มกราคม 2557 โดย Jittat (คุย | มีส่วนร่วม) (→Quick Introduction to Objects in JavaScript)
In this tutorial we will learn about objects in JavaScript. We will also develop a Nim game. There are many versions of the game, we will try the version that is usually called the 21 game.
In this game, there are 21 sticks. There are two players: you and the computer. Each player takes turn to take out the sticks. The player can choose between 1 - 3 sticks. The player that picks the last sticks wins.
- You can try it at [1].