Example #1
0
 protected void StartButton_Click(object sender, EventArgs e)
 {
     game = Session["game"] as src.Game;
     PlayerWhiteAgentList.Enabled = false;
     PlayerBlackAgentList.Enabled = false;
     StartButton.Enabled = false;
     game.start(PlayerWhiteAgentList.SelectedValue, PlayerBlackAgentList.SelectedValue);
     Session["Game"] = game;
 }
Example #2
0
 protected void StartButton_Click(object sender, EventArgs e)
 {
     game = Session["game"] as src.Game;
     PlayerWhiteAgentList.Enabled = false;
     PlayerBlackAgentList.Enabled = false;
     StartButton.Enabled          = false;
     game.start(PlayerWhiteAgentList.SelectedValue, PlayerBlackAgentList.SelectedValue);
     Session["Game"] = game;
 }
Example #3
0
 protected void TerminalButton_Click(object sender, EventArgs e)
 {
     game = Session["game"] as src.Game;
     TerminalOutput.Text += TerminalInput.Text + "\n";
     string tmp = TerminalInput.Text;
     TerminalInput.Text = "";
     game.setNewPlayerInput(tmp);
     game.run();
     Session["Game"] = game;
 }
Example #4
0
        protected void TerminalButton_Click(object sender, EventArgs e)
        {
            game = Session["game"] as src.Game;
            TerminalOutput.Text += TerminalInput.Text + "\n";
            string tmp = TerminalInput.Text;

            TerminalInput.Text = "";
            game.setNewPlayerInput(tmp);
            game.run();
            Session["Game"] = game;
        }
Example #5
0
 protected void Page_Load(object sender, EventArgs e)
 {
     game = Session["game"] as src.Game;
     if (game == null)
     {
     HelloWorldLabel.Text = "How about a game of chess?";
         game = new src.Game(putString);
     }
     else
     {
         game.run();
     }
     Session["game"] = game;
 }
Example #6
0
 protected void Page_Load(object sender, EventArgs e)
 {
     game = Session["game"] as src.Game;
     if (game == null)
     {
         HelloWorldLabel.Text = "How about a game of chess?";
         game = new src.Game(putString);
     }
     else
     {
         game.run();
     }
     Session["game"] = game;
 }