-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
280 additions
and
259 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,23 @@ | ||
#Moon9 | ||
# Moon9 | ||
|
||
该项目一些简单的小合集。代码放在RunJS上。 | ||
A collection of simple projects. | ||
|
||
##1.moon9 | ||
## 1. moon9 | ||
|
||
一个判断多少的简单游戏,最初学习Javascript时候写的,代码写得甚是难看。 | ||
A simple game to guess the number, written when I first started learning JavaScript. The code is quite ugly. | ||
|
||
人总是有某个时间会嫌弃以前的东西,难看虽然难看,终究是自己写出来的。而且会觉得难看,至少说明现在写的大概稍微好一点了,有进步就不该觉得沮丧。 | ||
People always find their past work embarrassing at some point. Although it’s ugly, it’s still something I created. And the fact that I find it ugly now means that I’ve improved somewhat, and I shouldn’t feel discouraged by progress. | ||
|
||
Demo:[http://sandbox.runjs.cn/show/jyq2gb5n](http://sandbox.runjs.cn/show/jyq2gb5n "http://sandbox.runjs.cn/show/jyq2gb5n") | ||
[Live Demo ↗](https://mirreal.github.io/moon9/moon9.html) | ||
|
||
## 2. Game of Life | ||
|
||
##2.Game of Life | ||
A game invented by the mathematician Conway with simple rules that produce wonderful transformations. | ||
|
||
数学家Conway发明的游戏,简单的规则,将产生美妙的变化。 | ||
[Live Demo ↗](https://mirreal.github.io/moon9/game-of-life/) | ||
|
||
Demo地址:[http://sandbox.runjs.cn/show/z8ofnxng](http://sandbox.runjs.cn/show/z8ofnxng "http://sandbox.runjs.cn/show/z8ofnxng") | ||
## 3. Tower of Hanoi | ||
|
||
A version of the Tower of Hanoi game with a visual solution demonstration. | ||
|
||
[Live Demo ↗](https://mirreal.github.io/moon9/tower-of-hanoi/) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Game of Life | ||
|
||
The Game of Life, also known simply as Life, is a cellular automaton devised by the British mathematician John Horton Conway in 1970. | ||
|
||
The rules are simple: Each cell has two states – alive or dead, and interacts with the eight cells surrounding it. | ||
|
||
- If a live cell has 2 to 3 live neighbors, it remains alive in the next stage; otherwise, it dies. | ||
- If a dead cell has exactly 3 live neighbors, it becomes a live cell in the next stage; otherwise, it stays dead. | ||
|
||
Conway’s Game of Life is a classic example of how simple rules can produce complex patterns. During the evolution, one can observe some very beautiful transformations and elegant geometric shapes. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,4 +28,4 @@ a.button { | |
a.button:hover { | ||
background: rgba(255,255,255,0.6); | ||
transition: all 1.2s ease-in 0.2s; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<ul> | ||
<li><a href="./moon9.html">moon9</a></li> | ||
<li><a href="./game-of-life/">Game of Life</a></li> | ||
<li><a href="./tower-of-hanoi/">Tower of Hanoi</a></li> | ||
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.