Exemplo n.º 1
0
        public Game(string name)
        {
            InitializeComponent();
            boardState = new char[64];
            colorState = new int[64];

            playerName     = name;
            buttonsOnBoard = new Button[] { cell1, cell2, cell3, cell4, cell5, cell6, cell7, cell8,
                                            cell9, cell10, cell11, cell12, cell13, cell14, cell15, cell16,
                                            cell17, cell18, cell19, cell20, cell21, cell22, cell23, cell24,
                                            cell25, cell26, cell27, cell28, cell29, cell30, cell31, cell32,
                                            cell33, cell34, cell35, cell36, cell37, cell38, cell39, cell40,
                                            cell41, cell42, cell43, cell44, cell45, cell46, cell47, cell48,
                                            cell49, cell50, cell51, cell52, cell53, cell54, cell55, cell56,
                                            cell57, cell58, cell59, cell60, cell61, cell62, cell63, cell64 };

            displayName.Text = "Player: " + playerName;

            //new instance of the cpp code that is loaded from cpp.dll
            cpp = new cpp_file();
            //array that is passed to the dll code and oerwritten with the ai's answers
            intCompAnswer = new int[6];
        }
Exemplo n.º 2
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(cpp_file obj)
 {
     return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
 }
Exemplo n.º 3
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(cpp_file obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
 internal static HandleRef getCPtr(cpp_file obj)
 {
     return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }