コード例 #1
0
ファイル: Form1.cs プロジェクト: Markus14111/Snake
        public Form1()
        {
            InitializeComponent();
            DoubleBuffered = true;

            controll = new Controll(this);

            //set WindowSize
            this.Size = new Size(CanvasSize + 16, CanvasSize + 39);
        }
コード例 #2
0
        public AI(Controll controller, int TileAmount)
        {
            for (int i = 0; i < path.Length; i++)
            {
                path[i] = ".\\Dataset" + i.ToString() + ".txt";
            }

            this.controller = controller;
            this.TileAmount = TileAmount;
            student         = new Network();
            winner          = new Network();
        }