reprezentacja wiedzy 2

This commit is contained in:
Patryk Drzewiński 2021-03-24 00:21:46 +01:00
parent f70bbf7c1b
commit 26ce5b770e
25 changed files with 48 additions and 0 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

18
container/agent.py Normal file
View 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
View 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

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.9 KiB

BIN
container/mushrooms/m1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
container/mushrooms/m2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
container/mushrooms/pm0.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

BIN
container/mushrooms/pm1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

BIN
container/mushrooms/pm2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

13
container/tree.py Normal file
View 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

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
container/trees/tree1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

BIN
container/trees/tree2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.1 KiB

BIN
container/trees/tree3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

BIN
container/trees/tree4.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

BIN
container/trees/tree5.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

BIN
container/trees/tree6.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

BIN
container/trees/tree7.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

BIN
container/trees/tree8.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB