Battle ship Games Written in python, pythonship
I recently learned python. This is a small game I wrote today.
from random import randintclass Board(object): board = [] def __init__(self,row,col): self.board = [] self.row = row self.col = col for i in range(row): self.board.append( ["O"] * col ) def print_board(self): space = (self.col * 2 - 8)/
:"))-1defCheck_if_hit (self):ifSelf.my_board_actual.board[self.guess_row][self.guess_col] = ="S": Print "congratulations! You sunk my battle ship!"Self.my_board.board[self.guess_row][self.guess_col]="S" returnTrueElse: ifSelf.guess_row orSelf.guess_col orSelf.guess_row > Self.roworSelf.guess_col >Self.col:Print "Ooops, that's not even in the ocean." elifSelf.my_board.board[self.guess_row][self.guess_col] = =
Java Introductory Course Video Combat-0 BasicsIt's finished uploading. Welcome to our little friends.Direct access:http://edu.csdn.net/course/detail/196The course folder is as follows:1First knowledge of Java19:082Familiarity with Eclipse development tools12:423Java language Basics17:394Process Control14:535Array14:446String34:327Classes and objects29:308Scissors Games33:399Analogue Bank teller Machine Program36:35TenPension settlement proceduresThis
Spritekit game engine soccer Game4, based on Spritekit game engine football Game Games _ add Football5, based on Spritekit game engine soccer Game _ Football rotation 1 play6, based on Spritekit game engine soccer Game _ Football rotation 2 Play7, based on Spritekit game engine soccer Game _ interface elements set play8, based on the Spritekit game engine soccer Game _ game start play9, based on Spritekit game engine soccer Game _ record game time pl
Java Introductory Course video Combat-BeginnerI've uploaded it, and welcome the little friends.Direct access:http://edu.csdn.net/course/detail/196The course catalogue is as follows:1First knowledge of Java19:082Familiarity with Eclipse development tools12:423Java language Basics17:394Process Control14:535Array14:446String34:327Classes and objects29:308Scissors Games33:399Analogue Bank teller Machine Program36:35TenPension settlement proceduresThis cou
. Geek College User Center G-Code Redemption page Avatar part of the implementation. mp4│├2. Geek College User Center G-Code Redemption page The layout implementation of the list on the left half. mp4│└3. Geek College User Center G-Code Redemption page in the right half of the layout implementation. mp4├│├1. HTML combat-Video playback page header layout implementation. mp4│├2. HTML Combat-Geek College Video
From: Play Forum http://bbs.duowan.com/thread-27863398-1-1.html
Author: anonymous nameSource: NetworkWhat is a sense of blow? I will not copy and paste a bunch of concept terms here.The purpose of this article is not to explain what a sense of attack is, but to learn from the actual experience (the monks have done two different-leaning horizontal la s without locking combat systems, web games, MD, I think
In two months ago wrote a "Unity3d actual combat" 0 basis of a step by stage to teach you to make Parkour games (1), the inside step by step demonstration of the production of parkour games, however, because of time, only wrote to let the character move forward so far. The pit has no time to fill, (although not many people see it), today just have time to complet
// Combat Games
Struct duizhan
{
Public string name;
Public int Xue;
Public int gongji;
Public int fangyu;
Public int mingzhong;
Public int Shengfa;
}
Static void main (string [] ARGs)
{
Duizhan [] A = new duizhan [5]; // defines the struct and creates an array.
Int I = 0;
For (; I
{
Console. Write ("enter the name of the {0} person:", I + 1 );
A [I]. Name = console. Readline ();
Int M = (INT) convert
1. High-strength equipmentYou can buy equipment from some intensive equipment or production equipment to players who like combat, preferably with few weapons, so that they can be sold at high prices.2. SetIn general, there will be some suits in the fighting game, which can increase the power of the skill or reduce the buffer time of the skill.3. PharmacySome games will use a lot of medicines for
Let's show the final results: http://gamebuilder.duapp.com/apprun.html?appid=genius-441422599398441Online editing interface:http://gamebuilder.duapp.com/gamebuilder.php?appid=genius-4414225993984411. Create a new project and delete the basketball and grass. Select tile vertically to place a new physical examination in the middle of the road dividing the road into 2. 2. Set the virtual height of the game scene to 5000,x direction and y-direction gravity set to 03. Place a counter to calculate th
Description: A enter a numeric value, enter the value is hidden can not see, let B guess how much, the value is too small or too large will prompt, and will be in the last guess the number of guesses a few times.Script content:#!/usr/bin/env python#FileName: while1.pyImport Getpass #调用模块a = Int (Getpass.getpass (' Enter A number A: ')) #模块赋值running = Truei = 0While running:b = Int (raw_input (' Enter A number B: '))If a = = B:print ' \033[32mgood,your Password is Ture!\033[0m 'running = Falsei =
: @selector (didfinishstep)]) { [_delegatedidFinishStep];} }}-----------------------------------------is a messy split line-----------------------------------------------------Of course there are write back, drop and other functions also have, are relatively simple, you can see the source code.Level mode, screen adaptation, level settings and other functions have not yet done, as is the study of the demo bar, have to finish can contact me.Of course the simple game can be used Uikit, slightly mor
??Commentary folderPresentation of the first game and introduction of resourcesThe construction of the second speaking sceneThird, the player's movementTalk about the opponent's AI (let the opponent move up)The management of the game (Part V)The management of the game in the six (next)Seventh announcement on the WIN8 systemEighth announcement to the WIN8 system on the highest score sharingNineth announcement on the Windows Phone8 systemDepending on the ongoing update ...。Video storage address su
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.