Facebook
From adi, 9 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 688
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace ConsoleApplication4
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.              
  14.  
  15.  
  16.             char[,] tablica = new char[3,3];
  17.            
  18.             Console.WriteLine("GRA KOLKO I KRZYZYK!!!!!");
  19.             Console.WriteLine("Player 1 wstawia 'X' ---- Player 2 wstawia 'O'");
  20.             Console.WriteLine("{0}|{1}|{2}", tablica[0, 0], tablica[0, 1], tablica[0, 2]);
  21.             Console.WriteLine("_ _ _");
  22.             Console.WriteLine(" | | ");
  23.             Console.WriteLine("_ _ _");
  24.             Console.WriteLine(" | | ");
  25.            
  26.            
  27.  
  28.             if ((tablica[0,0] = 'X')&&(tablica[0,1] = 'X')&&(tablica[0,2] == 'X'))
  29.             {
  30.                 Console.WriteLine("PLAYER 1(X) WYGRAŁ!!!!!!");
  31.             }
  32.            
  33.            
  34.            
  35.        
  36.        
  37.         }
  38.        
  39.     }
  40. }
  41.