Skip to content
Snippets Groups Projects
Commit 7fe906d2 authored by s2032074's avatar s2032074
Browse files

minor update in the fourth sequence

parent 88cff3ae
No related branches found
No related tags found
No related merge requests found
No preview for this file type
......@@ -5,6 +5,7 @@
#time is the library for time
import time
import pygame
import sys
#importing the predefined class with block
from Block import Block
......@@ -124,7 +125,7 @@ class Sequence:
self.dict.update({block7.ID: block7})
self.dict.update({block8.ID: block8})
self.dict.update({block9.ID: block9})
self.dict.update({block10.ID, block10})
self.dict.update({block10.ID: block10})
#putting the created blocks into a list for keeping the sequence
self.sequence = [block1, block2, block3, block4, block5, block6, block7, block8, block9, block10]
......@@ -151,6 +152,7 @@ class Sequence:
for block in self.sequence:
block.draw_computer(screen)
pygame.display.update()
#print(f'{block.ID}')
time.sleep(0.5)
#waiting 2 seconds to allow user see all the blocks
......@@ -219,13 +221,14 @@ def main():
screen.fill((255,255,255))
#creating the test object
test_sequence = Sequence(1)
test_sequence = Sequence(2)
test_sequence.create_sequence()
test_sequence.draw_sequence_comp(screen)
while True:
for event in pygame.event.get():
if event.type == pygame.QUIT:
pygame.quit()
sys.exit()
test_sequence.draw_sequence_human(screen, event)
pygame.display.update()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment