Skip to content

Instantly share code, notes, and snippets.

View aelipek's full-sized avatar
🏠
Working from home

Abdullah ELİPEK aelipek

🏠
Working from home
View GitHub Profile
@TalhaAkkas
TalhaAkkas / DenizAltiKomutani.py
Created March 2, 2011 23:13
Deniz Altı Komutanı
# copyright : talha büyükakkaşlar
# -*- coding: cp1254 -*-
import turtle
from turtle import *
import random
import time
# bu kısım bize istediğimiz şekilde turtle yapma imkanı sağlayacak
turtle.register_shape("ship",((4,12),(4,2),(8,2),(8,6),(4,6),(4,-4),(0,-4),(0,8)))
turtle.register_shape("sub",((-4,10),(-4,4),(-8,4),(-8,0),(-4,0),(-4,-10),(0,-10),(0,10),(-2,12)))
turtle.register_shape("torpedo",((0,2),(-10,2),(-10,0),(0,0)))