Monday, August 14, 2017

Tic-Tac-Toe

Tic-tac-toe

 

💕If you want to do Tic-tac-toe, here are the steps to follow:

    💕 Make sure you have a recent version of node js installed.
     💕Follow the installation instructions to create a new project.
         
             👉 npm install -g create-react-app
                 create-react-app my-app

                 cd my-app
                 npm start

         

  💕Delete all files in the src/ folder of the new project.
  💕 Add a file named index.css in the src/folder with css code.
      
     👉 body {
  font: 14px "Century Gothic", Futura, sans-serif;
  margin: 20px;
}

ol, ul {
  padding-left: 30px;
}

.board-row:after {
  clear: both;
  content: "";
  display: table;
}

.status {
  margin-bottom: 10px;
}

.square {
  background: #fff;
  border: 1px solid #999;
  float: left;
  font-size: 24px;
  font-weight: bold;
  line-height: 34px;
  height: 34px;
  margin-right: -1px;
  margin-top: -1px;
  padding: 0;
  text-align: center;
  width: 34px;
}

.square:focus {
  outline: none;
}

.kbd-navigation .square:focus {
  background: #ddd;
}

.game {
  display: flex;
  flex-direction: row;
}

.game-info {
  margin-left: 20px;
}




No comments:

Post a Comment

HTML introduction

HTML stands for Hyper Text Markup Language. HTML describes the structure of web page using markup. HTML elements are the building blo...