Implementation of tick TCK toe code in C language

We should all have played the three piece chess game. The rules of the game are not introduced. Let's go through it together before the code is realized! 1. Mind map 2. Design idea Combined with the above figure, we can split it into three files for writing: test.c file is used to test the logic of the game do... while function, pri ...

Posted by dkim777 on Thu, 17 Feb 2022 22:59:40 +0100

[hard core] dream back to the bully

Growing up is a process of constant loss. The author is a post-90s. When we were young, our family conditions were poor and the means of entertainment were very poor. Unlike today's children who can play with mobile phones, tablets and computers, at that time, a stack of small raccoon Water Margin cards can play for a whole day. If there ...

Posted by George Botley on Thu, 17 Feb 2022 13:14:19 +0100

State mode design program: Heroes in the game can rest, defend, attack normally and attack with skills according to different physical strength values.

1, Application scenario and case description We often play games in our spare time to relax and relieve pressure. In many games, heroes can make different actions to face the enemy according to different physical strength. Heroes can perform rest, defense, ordinary attack and skill attack. The physical strength consumed or recovered is differ ...

Posted by alecks on Sun, 13 Feb 2022 06:12:53 +0100

JAVA exercise 114 - cat and mouse

The two players play the role of cat and mouse respectively, and play the game on an undirected graph. They take turns. The form of graph is: graph[a] is a list, which is composed of all nodes b satisfying that ab is an edge in the graph. The mouse starts from node 1 and starts first; The cat starts from node 2 and starts the second. There is ...

Posted by drunknbass on Sat, 12 Feb 2022 13:22:55 +0100

Interactive script making of cocos character and enemy behavior

Make a cocos free game for your baby Chapter 1 introduction of background and development framework Chapter 2 Node tree and scene production Chapter III UI, map and level text production Chapter IV rocker, key and character animation Chapter 5 enemy and AI production Chapter VI interactive script making of role and enemy behavior Chapter 7 gam ...

Posted by pankirk on Fri, 11 Feb 2022 03:55:39 +0100

Snake games (C language)

Write before: Greedy snake, I believe everyone has played it. After learning the C language, I also want to write a greedy Snake game myself. Then I checked some materials. Finally, based on a video of station B, I added my own thinking, design and improvement, and created my own greedy Snake game, which I share with you here. (original vide ...

Posted by Motionographer on Thu, 10 Feb 2022 21:45:00 +0100

Childhood classic memories | take you to play a magic tower game in Python from scratch

Relevant documents Relevant game materials (pictures and audio, etc.) come from the network and are subject to invasion and deletion. Small partners who need source code can add QQ group: 773162165 development tool Python version: 3.7.4 Related modules: pygame module; And some python built-in modules. Environment construction Install Pyth ...

Posted by GrexP on Wed, 09 Feb 2022 14:43:57 +0100

Chinese chess game realized by Java+Swing

catalogue 1, System introduction 1. Development environment 2. Technical selection 3. System functions 2, System display 1. Home page 2. Black chess 3. Red flag walk 3, Partial code ChineseCheseRule.java 4, Other 1. More systems Java swing system series implementation Java+JSP system series implementation Java+Servlet system se ...

Posted by wdwtest on Tue, 08 Feb 2022 15:07:41 +0100

Python project alien invasion: Aliens

Python project alien invasion (II): Aliens In this chapter, we mainly complete the following functions. First, add an alien at the edge of the screen, and then try to generate a group of aliens. We make these aliens move like two hundred years and below, and delete the aliens hit by the bullet. Finally, we show the number of ships the play ...

Posted by Sgarissta on Tue, 08 Feb 2022 13:44:58 +0100

Python pyGame realizes the functions of aircraft war-5-screen rendering, drawing score, number of lives, number of super bombs and pause

Follow the previous 4 steps: 1. Add background and aircraft movement: https://blog.csdn.net/weixin_38778769/article/details/117329303 2. Add enemy aircraft and collision explosion: https://blog.csdn.net/weixin_38778769/article/details/117356538 3. Firing bullets and hitting enemy aircraft: https://blog.csdn.net/weixin_38778769/article/details/1 ...

Posted by oldmanice on Mon, 07 Feb 2022 12:00:04 +0100