示例#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;
 }
示例#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;
 }
示例#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;
 }
示例#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;
        }
示例#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;
 }
示例#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;
 }