Beispiel #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;
 }
Beispiel #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;
 }
Beispiel #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;
 }
Beispiel #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;
        }
Beispiel #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;
 }
Beispiel #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;
 }