public static void EatApple() { Score += 10; speed += 0.1f; apple.Pos = new REMOPoint(StandAlone.Random(0, StandAlone.FullScreen.Width), StandAlone.Random(0, StandAlone.FullScreen.Height)); //The apple teleports to the random point. }
public static void Build() { GetTiles("A", 9); GetTiles("B", 9); GetTiles("C", 9); GetTiles("D", 4); GetTiles("E", 3); //Shuffle for (int i = 0; i < 1000; i++) { int r = StandAlone.Random(0, MJStacks.Count - 1); Swap <String>(MJStacks, r, (2 * r) % MJStacks.Count); } //Get Hands for (int i = 0; i < 34; i++) { GetTiles(); } for (int i = 0; i < 3; i++) { GetMarket(); } MyHands.Sort(); }