This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pygame | |
size = width, height = 400, 300 | |
screen = pygame.display.set_mode(size) | |
clock = pygame.time.Clock() | |
running = True | |
# Создаем второй холÑÑ‚ | |
screen2 = pygame.Surface(screen.get_size()) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pygame | |
size = width, height = 301, 301 | |
screen = pygame.display.set_mode(size) | |
clock = pygame.time.Clock() | |
running = True | |
while running: | |
screen.fill((0, 0, 0)) | |
for event in pygame.event.get(): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pygame | |
size = width, height = 301, 301 | |
screen = pygame.display.set_mode(size) | |
clock = pygame.time.Clock() | |
running = True | |
x_pos = 0 | |
v = 20 # пикÑелей в Ñекунду | |
fps = 60 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pygame | |
size = width, height = 301, 301 | |
screen = pygame.display.set_mode(size) | |
clock = pygame.time.Clock() | |
running = True | |
x_pos = 0 | |
v = 20 # пикÑелей в Ñекунду | |
while running: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pygame | |
import random | |
def draw(): | |
for i in range(10000): | |
screen.fill(pygame.Color('white'), (random.random() * width, random.random() * height, 1, 1)) | |
size = width, height = 301, 301 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pygame | |
size = width, height = 301, 301 | |
screen = pygame.display.set_mode(size) | |
running = True | |
x_pos = 0 | |
while running: | |
# внутри игрового цикл еще один цикл | |
# приема и обработки Ñообщений |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pygame | |
size = width, height = (400, 300) | |
screen = pygame.display.set_mode(size) | |
pygame.init() | |
def draw(): | |
screen.fill((0, 0, 0)) | |
font = pygame.font.Font(None, 50) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WHITE = 1 | |
BLACK = 2 | |
# Удобная функция для вычисления цвета противника | |
def opponent(color): | |
if color == WHITE: | |
return BLACK | |
else: | |
return WHITE |
This file has been truncated, but you can view the full file.
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 1 column, instead of 3 in line 1.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
keywords;price;product_name | |
МОРУМ, Ковер, безворсовый;6999;МОРУМ | |
МОРУМ, Ковер, безворсовый;6999;МОРУМ | |
ИДБИ, Придверный коврик;649;ИДБИ | |
ХОДДЕ, Ковер, безворсовый;1399;ХОДДЕ | |
ОПЛЕВ, Придверный коврик;599;ОПЛЕВ | |
ОПЛЕВ, Придверный коврик;599;ОПЛЕВ | |
ЮНКЭН, Брикеты;89;ЮНКЭН | |
БУНСЁ, Детское садовое кресло;1199;БУНСЁ | |
ИКЕА ПС ВОГЭ, Садовое легкое кресло;1999;ИКЕА ПС ВОГЭ |