reprezentacja wiedzy 2
BIN
container/__pycache__/__init__.cpython-39.pyc
Normal file
BIN
container/__pycache__/agent.cpython-39.pyc
Normal file
BIN
container/__pycache__/board.cpython-39.pyc
Normal file
BIN
container/__pycache__/constans.cpython-39.pyc
Normal file
BIN
container/__pycache__/mushroom.cpython-39.pyc
Normal file
BIN
container/__pycache__/piece.cpython-39.pyc
Normal file
BIN
container/__pycache__/tree.cpython-39.pyc
Normal file
18
container/agent.py
Normal file
@ -0,0 +1,18 @@
|
||||
import pygame
|
||||
from container.piece import Piece
|
||||
|
||||
|
||||
class Agent(Piece):
|
||||
def __init__(self,x_y):
|
||||
self.name = "Agent"
|
||||
self.row = x_y[0]
|
||||
self.col = x_y[1]
|
||||
self.points = 0
|
||||
self.img = pygame.image.load(r'container\detective.png')
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
17
container/mushroom.py
Normal file
@ -0,0 +1,17 @@
|
||||
from container.piece import Piece
|
||||
import pygame
|
||||
|
||||
class Mushroom(Piece):
|
||||
def __init__(self,x_y, img = 0, poison = False):
|
||||
self.name = "Mushroom"
|
||||
self.row = x_y[0]
|
||||
self.col = x_y[1]
|
||||
self.poison = poison
|
||||
self.img = pygame.image.load(r'container\mushrooms\m'+str(img)+'.png')
|
||||
if poison: self.img = pygame.image.load(r'container\mushrooms\pm'+str(img)+'.png')
|
||||
self.points = img+1
|
||||
if poison: self.points *= -1
|
||||
|
||||
|
||||
|
||||
|
BIN
container/mushrooms/m0.png
Normal file
After Width: | Height: | Size: 9.9 KiB |
BIN
container/mushrooms/m1.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
container/mushrooms/m2.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
container/mushrooms/pm0.png
Normal file
After Width: | Height: | Size: 17 KiB |
BIN
container/mushrooms/pm1.png
Normal file
After Width: | Height: | Size: 18 KiB |
BIN
container/mushrooms/pm2.png
Normal file
After Width: | Height: | Size: 16 KiB |
13
container/tree.py
Normal file
@ -0,0 +1,13 @@
|
||||
from container.piece import Piece
|
||||
import pygame
|
||||
|
||||
class Tree(Piece):
|
||||
def __init__(self,x_y, img = 0):
|
||||
self.name = "Tree"
|
||||
self.row = x_y[0]
|
||||
self.col = x_y[1]
|
||||
self.img = pygame.image.load(r'container\trees\tree'+str(img)+'.png')
|
||||
|
||||
|
||||
|
||||
|
BIN
container/trees/tree0.png
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
container/trees/tree1.png
Normal file
After Width: | Height: | Size: 18 KiB |
BIN
container/trees/tree2.png
Normal file
After Width: | Height: | Size: 9.1 KiB |
BIN
container/trees/tree3.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
container/trees/tree4.png
Normal file
After Width: | Height: | Size: 20 KiB |
BIN
container/trees/tree5.png
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
container/trees/tree6.png
Normal file
After Width: | Height: | Size: 22 KiB |
BIN
container/trees/tree7.png
Normal file
After Width: | Height: | Size: 17 KiB |
BIN
container/trees/tree8.png
Normal file
After Width: | Height: | Size: 19 KiB |