Friday, June 19, 2015

Google Code Jam Round 2 Ranked 29th in Canada, ranked 95 in Unite States

https://code.google.com/codejam/contest/8234486/scoreboard?c=8234486#sp=1351

Ranking 1352nd in Google Code Jam Round 2. After counting the flags of the countries, I find myself ranking 29th in Canada, and ranking 95th in the Unite States.

Sunday, June 14, 2015

Fish Game

 
 
 
 
 
Simulate swarm behavior of fishes by using Sprite Kit. The features of swarm behavior:
  • Separation – Distance exists between fishes.
  • Alignment – Fishes swim towards the same direction.
  • Cohesion – Fishes swim together as a group.
  • Predator – Fishes will escape when there are predators.
  • Prey – Fishes seek the food. 
Using Artificial Intelligence algorithm, each fish moves forwards to the area where provides best choice(there are fewer fishes and more food; the distance is less).

Here is the report for this project.