Control your bug with writing codes
bugs
folder with .py
extension and with this structure :name = "sniper"
char = '@'
#starting point for the bug
x = 15
y = 3
# this is the main loop and will be invoked repeatedly
def loop(bug):
#write your codes here
#| | | |
#v v v v
#۸ ۸ ۸ ۸
#| | | |
bugs/__init__.py
import bugs.bug1, bugs.bug2, bugs.YourBugName, ...
bugs_list=[bug1, bug2, YourBugName, ...]
python bugswar.py
In the loop function of your bugs code file, you will get a bug object that has these properties :
bug.move_right()
bug.move_left()
bug.move_up()
bug.move_down()
bug.scan(deg)
#returns a booleanbug.shoot(deg)
Bugs health
bug.health
Position of the bug (zero indexed):
bug.X
bug.Y
World size:
bug.width
bug.height
Each operation takes some time to complete, so using less operations can be an advantage
Unity3D, SignalR real-time multiplayer game
A simple pig game written in js
Games written in Python using the PyGame library
Game application that helps people to play "Mafia Party Game" easily and manageable
Make your URLs shorter (smaller) and more memorable in Go
C Programming Course Lecture 🙈🎈
Snake and ladders game
The mini snake game support for my final lab at university. They were designed by Java OOP and Java Swing GUI.