forked from s452751/AI_PRO
V. 12
This commit is contained in:
parent
4960362fb5
commit
b32d77fe3f
4
Board.py
4
Board.py
@ -1,7 +1,7 @@
|
||||
import random
|
||||
|
||||
from Main.Field import Field
|
||||
from Main.constants import *
|
||||
from Field import Field
|
||||
from constants import *
|
||||
|
||||
states = ['toPlow', 'toSeed', 'toFertilize', 'toWater', 'toCut']
|
||||
|
||||
|
1
Main
1
Main
@ -1 +0,0 @@
|
||||
Subproject commit 3fe181efa0c9cf6c89d0cdc482fcdee9655e9368
|
@ -1,5 +0,0 @@
|
||||
from Main import Board
|
||||
|
||||
board = Board.generate()
|
||||
|
||||
print(board[0][0])
|
@ -1,5 +1,5 @@
|
||||
from Main.TractorLoad import TillageUnit
|
||||
from Main.constants import HORIZONTAL_TILES_NUMBER, VERTICAL_TILES_NUMBER
|
||||
from TractorLoad import TillageUnit
|
||||
from constants import HORIZONTAL_TILES_NUMBER, VERTICAL_TILES_NUMBER
|
||||
|
||||
|
||||
class Tractor:
|
||||
|
@ -1,5 +1,5 @@
|
||||
from Main import TractorLoad
|
||||
from Main.TractorLoad import TillageUnit
|
||||
|
||||
from TractorLoad import TillageUnit
|
||||
|
||||
|
||||
def action(field, tractor):
|
||||
|
@ -1,6 +1,6 @@
|
||||
from Main.TractorLoad import TillageUnit
|
||||
from Main.constants import *
|
||||
from Main.images import *
|
||||
from TractorLoad import TillageUnit
|
||||
from constants import *
|
||||
from images import *
|
||||
import pygame
|
||||
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
from Main.drawUI import *
|
||||
from drawUI import *
|
||||
import pygame
|
||||
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
import pygame
|
||||
from constants import *
|
||||
|
||||
from Main.constants import TILE_SIZE
|
||||
from constants import TILE_SIZE
|
||||
|
||||
tractor_up_image = pygame.image.load("resources/traktor_up.png")
|
||||
tractor_up = pygame.transform.scale(tractor_up_image, (TILE_SIZE, TILE_SIZE))
|
||||
|
12
main.py
12
main.py
@ -1,12 +1,12 @@
|
||||
import pygame
|
||||
# wersja 1.05
|
||||
|
||||
from Main import Board, driving, drawUI
|
||||
from Main.Tractor import Tractor
|
||||
from Main.TractorAction import action, chooseToolset
|
||||
from Main.TractorLoad import TillageUnit
|
||||
from Main.constants import *
|
||||
from Main.driving import autodrive, isComebackTime
|
||||
import Board, driving, drawUI
|
||||
from Tractor import Tractor
|
||||
from TractorAction import action, chooseToolset
|
||||
from TractorLoad import TillageUnit
|
||||
from constants import *
|
||||
from driving import autodrive, isComebackTime
|
||||
|
||||
pygame.init()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user