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 ui | |
import random | |
rabbit_size = 50 | |
v = ui.View(background_color=('#bcdeff')) | |
board = ui.View() | |
v.add_subview(board) | |
v.present('full_screen', hide_title_bar=False , orientations=['landscape']) | |
board.frame = (v.width-v.height + rabbit_size/2, rabbit_size/2 , v.height - rabbit_size, v.height - rabbit_size) | |
board.border_width = 10 |
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 ui | |
import random | |
rabbit_size = 50 | |
v = ui.View(background_color=('#bcdeff')) | |
board = ui.View() | |
v.add_subview(board) | |
v.present('full_screen', hide_title_bar=False , orientations=['landscape']) | |
board.frame = (v.width-v.height + rabbit_size/2, rabbit_size/2 , v.height - rabbit_size, v.height - rabbit_size) | |
board.border_width = 10 |
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 random | |
from canvas import set_size, draw_rect, draw_line, set_stroke_color, set_line_width | |
from math import sin, cos, pi | |
from time import sleep | |
heading = 0.0 | |
pos = (0, 0) | |
pen_is_down = True |
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
{"succour": {"thee": 1.0}, "hordes": {"\n": 1.0}, "nunnery": {"\n": 1.0}, "Poetry": {"Briel": 1.0}, "yellow": {"skirted": 0.25, "leaves": 0.25, "bees": 0.25, "caterpillar": 0.25}, "four": {"nickels": 0.2, "\n": 0.4, "is": 0.2, "more": 0.2}, "woods": {"and": 0.2857142857142857, "among": 0.14285714285714285, "on": 0.14285714285714285, "which": 0.14285714285714285, "beneath": 0.14285714285714285, "grow": 0.14285714285714285}, "ringlets": {"day": 1.0}, "woody": {"Ida": 1.0}, "Until": {"a": 0.16666666666666666, "we": 0.16666666666666666, "I": 0.16666666666666666, "their": 0.16666666666666666, "they": 0.16666666666666666, "he": 0.16666666666666666}, "Foundation": {"and": 0.11538461538461539, "web": 0.038461538461538464, "makes": 0.038461538461538464, "is": 0.07692307692307693, "\n": 0.11538461538461539, "as": 0.038461538461538464, "lor": 0.038461538461538464, "how": 0.038461538461538464, "s": 0.11538461538461539, "Royalty": 0.038461538461538464, "at": 0.038461538461538464, "the": 0.11538461538461539, "Inc": 0.03846 |
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
# coding: utf-8 | |
from scene import * | |
from ui import * | |
import speech | |
import dialogs | |
def string_transformer(displayed_string, secret_string, entered_letter): | |
index = 0 | |
for i in secret_string: | |
if i.lower() == entered_letter: |
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
# coding: utf-8 | |
from scene import * | |
from ui import * | |
import speech | |
import dialogs | |
def is_point_inside_rect(point, rect): | |
x = rect[0] | |
y = rect[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
# coding: utf-8 | |
from scene import * | |
from ui import * | |
import speech | |
import dialogs | |
def is_point_inside_rect(point, rect): | |
x = rect[0] | |
y = rect[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
# coding: utf-8 | |
from scene import * | |
from ui import * | |
import speech | |
import dialogs | |
def is_point_inside_rect(point, rect): | |
x = rect[0] | |
y = rect[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
from scene import * | |
from ui import * | |
import speech | |
def is_point_inside_rect(point, rect): | |
x = rect[0] | |
y = rect[1] | |
w = rect[2] | |
h = rect[3] |
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
from scene import * | |
from ui import * | |
import speech | |
def is_point_inside_rect(point, rect): | |
x = rect[0] | |
y = rect[1] | |
w = rect[2] | |
h = rect[3] |