Оновити 'nauka2.py'

Zamówienia, reprezentacja wiedzy
This commit is contained in:
Serhii Hromov 2020-04-06 19:31:51 +00:00
parent 015bfb435a
commit 9398e185a6

View File

@ -2,6 +2,7 @@ import pygame
import sys
import os
import time
from concepts import contexts
background_image = pygame.image.load("./images/tile.jpg")
from pygame.locals import (
@ -50,11 +51,18 @@ class Kitchen:
class Order:
#to do
# to do
x = 0
y = 0
# conceptual graphs to represent menu
conc_dishes = contexts.Context.fromstring(('''
|soup |dessert|main course |
tiramisu | | X | |
beff steak | | | |
shiruko | X | X | |
'''))
def __int__(self, x, y, id):
self.x = x