Ejemplo n.º 1
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;
 }
Ejemplo n.º 2
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;
        }
Ejemplo n.º 3
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;
 }