void Start () { audio = GetComponent<AudioSource>(); moves = moves.GetComponent<Text>(); BigSquare = BigSquare.GetComponent<BigSquare>(); DRect = DRect.GetComponent<DRect>(); Rect1 = Rect1.GetComponent<Rectangle>(); Rect2 = Rect2.GetComponent<Rectangle>(); Rect3 = Rect3.GetComponent<Rectangle>(); Rect4 = Rect4.GetComponent<Rectangle>(); Square1 = Square1.GetComponent<Square>(); Square2 = Square2.GetComponent<Square>(); Square3 = Square3.GetComponent<Square>(); Square4 = Square4.GetComponent<Square>(); setGameBoard (); }
static void Main(string[] args) { uint lowBound = (uint)Encoding.ASCII.GetBytes("A")[0]; uint hiBound = (uint)Encoding.ASCII.GetBytes("Z")[0]; uint n = 3763; uint e = 11; Console.WriteLine("x | e(x)"); for (uint i = lowBound; i <= hiBound; ++i) { Console.WriteLine( "{0} | {1}", Convert.ToChar(i), BigSquare.SqAndMult(i, e, n) ); } Console.ReadKey(true); }