Create simple web browser games using vanilla Javascript. When I was young, I really enjoy playing by these games on my computer or phone and I always want to build this myself but never really gotten around to do it. Now I decided that it is time to build this while learning more about Javascript.
This is an ongoing project as I intend to create more games.
Practice and deepen my knowledge in HTML, SCSS, and Javascript by building simple games.
This game is loosely based on Ania Kubow's tutorial.
- Create section for the scores and games area
- Create array of objects for the cards and grabbing each DOM element
- Randomize the cards using Math Random
- Create function to generate the cards, adding elements, append it to the parent element, and add event listener to each of the card
- Create function to check the cards and logic for win and lose the game
- Create function to restart the game if the player loses the game
This game is loosely based on Coding Nepal's tutorial
- Create 3 sections for selecting player, board for the game, and result banner
- Style each section using SCSS and showing only certain section at certains selection
- Grabbing each DOM element, initiliazing state for the bot, assingning icons to X and O, and setting the starting sign
- Create function when the page loads and add event listener to the buttons
- Create function for the user and bot
- Create function to check the combination and decide the winner
- Add event listener to the button to replay the game once the result has been given
- HTML
- CSS/SCSS
- Javascript
- Git and Github