Showing posts with label making-game. Show all posts
Showing posts with label making-game. Show all posts

5 September 2020

How to make a tic-tac-toe game using Javascript


In this tutorial, you'll be learning on how to make your own tic-tac-toe game using Javascript. In a traditional tic-tac-toe game, there will be two-player that in turn try to get 3 consecutive cells with their assigned icon (usually a circle, O and times, X) in a 3x3 grid. This is a simplified version of my tic-tac-toe game, where there you're up against a bot created with the minimax algorithm. While in this version, you'll need to ask some of your friends or family members to play with you or you could just play it alone. You can find my tic-tac-toe game through this Github link. All the code for this tutorial could be found here and if you want to play the game, you could visit this Github page. Now let's get started with the things that our game will need. 

30 July 2020

Creating a snake game in Javascript - part 2

Welcome back to the second part of how to create a snake game in Javascript tutorial. On the first part of the tutorial, I explained the component that we need to make a snake game. While, in this part, you'll be learning how to take those components together to make a simple snake game. You can get the code on GitHub here. If you want to test play the game, you can do it by clicking this link (Github Page).

28 July 2020

Creating a snake game in Javascript - part 1

Welcome to my tutorial, my fellow learners. In this tutorial, I'll be showing you how you can create a simple snake game with just using Javascript, CSS and HTML. You can move the snake around. The snake could increase its size when it eats the food in the game. Although this is a straightforward version of the snake, so it won't have many features. You can't lose in this game as there's no system designed for it. You can move into the opposite side of the border, by moving through the perimeter of the canvas.