Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/asweigart/PythonStdioGames
/ functions
Functions
712 in github.com/asweigart/PythonStdioGames
⨍
Functions
712
◇
Types & classes
17
↓ 1 callers
Function
displayOutlineDiamond
(size)
javascript_games/diamonds.js:29
↓ 1 callers
Function
displayWallDict
Display a wall dictionary, as returned by wallStrToWallDict(), on the screen.
src/gamesbyexample/mazerunner3d.py:133
↓ 1 callers
Function
doPlayerMove
Ask the player for their move, and if it is valid, carry it out on the board.
src/gamesbyexample/barca.py:199
↓ 1 callers
Function
doPlayerMove
Ask the player for a move and carry it out on the board.
src/gamesbyexample/hexapawn.py:159
↓ 1 callers
Function
drawApple
(coord)
src/gamesbyexample/pygame_games/wormy.py:206
↓ 1 callers
Function
drawAquarium
Draw the aquarium on the screen.
src/gamesbyexample/fishtank.py:218
↓ 1 callers
Function
drawBoard
(board)
src/gamesbyexample/pygame_games/tetromino.py:457
↓ 1 callers
Function
drawBoard
(board)
src/gamesbyexample/pygame_games/pentomino.py:684
↓ 1 callers
Function
drawBoard
(board)
src/gamesbyexample/pygame_games/tetrominoforidiots.py:355
↓ 1 callers
Function
drawBranch
(x, y, direction, branchLength)
src/gamesbyexample/fractalnonuniformtree.py:29
↓ 1 callers
Function
drawBranch
(startPosition, direction, branchLength)
src/gamesbyexample/fractaltree.py:12
↓ 1 callers
Function
drawCarpet
(left, top, width, height)
src/gamesbyexample/sierpinskisquare.py:25
↓ 1 callers
Function
drawColorSchemeBoxes
(x, y, schemeNum)
src/gamesbyexample/pygame_games/inkspill.py:259
↓ 1 callers
Function
drawGrid
()
src/gamesbyexample/pygame_games/wormy.py:213
↓ 1 callers
Function
drawHealthMeter
(currentHealth)
src/gamesbyexample/pygame_games/squirrel.py:317
↓ 1 callers
Function
drawHighlightBox
(boxx, boxy)
src/gamesbyexample/pygame_games/memorypuzzle.py:249
↓ 1 callers
Function
drawLogoAndButtons
()
src/gamesbyexample/pygame_games/inkspill.py:348
↓ 1 callers
Function
drawMap
Draws the map to a Surface object, including the player and stars. This function does not call pygame.display.update(), nor does it draw the "
src/gamesbyexample/pygame_games/starpusher.py:536
↓ 1 callers
Function
drawMovingGem
(gem, progress)
src/gamesbyexample/pygame_games/gemgem.py:319
↓ 1 callers
Function
drawMower
Draw the lawn mower with its left edge at mowerx, mowery.
src/gamesbyexample/lawnmower.py:113
↓ 1 callers
Function
drawNextPiece
(piece)
src/gamesbyexample/pygame_games/tetromino.py:496
↓ 1 callers
Function
drawNextPiece
(piece)
src/gamesbyexample/pygame_games/pentomino.py:723
↓ 1 callers
Function
drawNextPiece
(piece)
src/gamesbyexample/pygame_games/tetrominoforidiots.py:394
↓ 1 callers
Function
drawPalettes
()
src/gamesbyexample/pygame_games/inkspill.py:373
↓ 1 callers
Function
drawScore
(score)
src/gamesbyexample/pygame_games/wormy.py:189
↓ 1 callers
Function
drawSierpinski
(x, y, level, color)
src/gamesbyexample/sierpinskitriangle.py:42
↓ 1 callers
Function
drawSnake
(lengths)
src/gamesbyexample/pythons.py:133
↓ 1 callers
Function
drawSnakeHead
(length)
src/gamesbyexample/pythons.py:48
↓ 1 callers
Function
drawSnowflake
(sideLength, levels)
src/gamesbyexample/kochsnowflake.py:52
↓ 1 callers
Function
drawStatus
(score, level)
src/gamesbyexample/pygame_games/tetromino.py:469
↓ 1 callers
Function
drawStatus
(score, level)
src/gamesbyexample/pygame_games/pentomino.py:696
↓ 1 callers
Function
drawStatus
(score, level)
src/gamesbyexample/pygame_games/tetrominoforidiots.py:367
↓ 1 callers
Function
drawTile
(tile, x, y, canvas)
inprogress/tsuromapmaker.py:77
↓ 1 callers
Function
drawTree
(x, y, direction, seed)
src/gamesbyexample/fractalnonuniformtree.py:68
↓ 1 callers
Function
drawTwistDownSegment
(length)
src/gamesbyexample/pythons.py:112
↓ 1 callers
Function
drawTwistUpSegment
(length)
src/gamesbyexample/pythons.py:90
↓ 1 callers
Function
drawWorm
(wormCoords)
src/gamesbyexample/pygame_games/wormy.py:196
↓ 1 callers
Function
encryptMessage
(message, key)
src/gamesbyexample/railfencecipher.py:94
↓ 1 callers
Function
encryptMessage
Encrypt the message using the key.
src/gamesbyexample/affinecipher.py:98
↓ 1 callers
Function
encryptMessage
Encrypt the message using the key.
src/gamesbyexample/vigenerecipher.py:63
↓ 1 callers
Function
encryptMessage
Encrypt the message using the key.
src/gamesbyexample/simplesubcipher.py:83
↓ 1 callers
Function
englishToLeetspeak
Convert the English string in message and return leetspeak.
src/gamesbyexample/leetspeak.py:33
↓ 1 callers
Function
englishToMiddleLetterScramble
Convert the string message into middle-letter scrambled text.
src/gamesbyexample/middleletterscrambler.py:42
↓ 1 callers
Function
englishToMorse
(message)
src/gamesbyexample/morsecode.py:63
↓ 1 callers
Function
englishToPigLatin
(message)
src/gamesbyexample/piglatin.py:31
↓ 1 callers
Function
englishToSpongecase
Return the spongecase form of the given string.
src/gamesbyexample/spongecase.py:30
↓ 1 callers
Function
enterPlayerTile
()
src/gamesbyexample/pygame_games/flippy.py:422
↓ 1 callers
Function
filledInHilbert
()
src/gamesbyexample/hilbertcurve.py:51
↓ 1 callers
Function
findModInverse
Return the modular inverse of a % m, which is the number x such that a*x % m = 1
src/gamesbyexample/affinecipher.py:149
↓ 1 callers
Function
floodAnimation
(board, paletteClicked, animationSpeed=25)
src/gamesbyexample/pygame_games/inkspill.py:288
↓ 1 callers
Function
floodFill
Changes any values matching oldCharacter on the map object to newCharacter at the (x, y) position, and does the same for the positions to the
src/gamesbyexample/pygame_games/starpusher.py:514
↓ 1 callers
Function
floodFill
(board, oldColor, newColor, x, y)
src/gamesbyexample/pygame_games/inkspill.py:411
↓ 1 callers
Function
gameOverAnimation
(color=WHITE, animationSpeed=50)
src/gamesbyexample/pygame_games/simulate.py:213
↓ 1 callers
Function
gameWonAnimation
(board)
src/gamesbyexample/pygame_games/memorypuzzle.py:270
↓ 1 callers
Function
generateAreMillenialsKillingHeadline
()
src/gamesbyexample/clickbait.py:67
↓ 1 callers
Function
generateBigCompaniesHateHerHeadline
()
src/gamesbyexample/clickbait.py:79
↓ 1 callers
Function
generateDontWantYouToKnowHeadline
()
src/gamesbyexample/clickbait.py:95
↓ 1 callers
Function
generateFish
Return a dictionary that represents a fish.
src/gamesbyexample/fishtank.py:102
↓ 1 callers
Function
generateGiftIdeaHeadline
()
src/gamesbyexample/clickbait.py:101
↓ 1 callers
Function
generateJobAutomatedHeadline
()
src/gamesbyexample/clickbait.py:116
↓ 1 callers
Function
generateRandomKey
Generate and return a random encryption key.
src/gamesbyexample/affinecipher.py:132
↓ 1 callers
Function
generateRandomKey
Generate and return a random encryption key.
src/gamesbyexample/simplesubcipher.py:119
↓ 1 callers
Function
generateReasonsWhyHeadline
()
src/gamesbyexample/clickbait.py:108
↓ 1 callers
Function
generateWhatYouDontKnowHeadline
()
src/gamesbyexample/clickbait.py:72
↓ 1 callers
Function
generateYouWontBelieveHeadline
()
src/gamesbyexample/clickbait.py:87
↓ 1 callers
Method
getAction
(self)
src/gamesbyexample/zombiebitefight.py:54
↓ 1 callers
Function
getBlankBoard
Create a new, blank tic-tac-toe board.
src/gamesbyexample/tictactoe.py:40
↓ 1 callers
Function
getBlankBoard
()
src/gamesbyexample/pygame_games/gemgem.py:265
↓ 1 callers
Function
getBlankBoard
()
src/gamesbyexample/pygame_games/tetromino.py:383
↓ 1 callers
Function
getBlankBoard
()
src/gamesbyexample/pygame_games/pentomino.py:610
↓ 1 callers
Function
getBlankBoard
()
src/gamesbyexample/pygame_games/tetrominoforidiots.py:281
↓ 1 callers
Function
getBoardWithValidMoves
Returns a new board with . marking the possible moves.
src/gamesbyexample/reversegam.py:143
↓ 1 callers
Function
getBoardWithValidMoves
(board, tile)
src/gamesbyexample/pygame_games/flippy.py:389
↓ 1 callers
Method
getBodyStr
Returns the string of the duckling's body.
src/gamesbyexample/ducklings.py:140
↓ 1 callers
Method
getBodyStr
()
javascript_games/ducklings.js:164
↓ 1 callers
Function
getBoxAtPixel
(x, y)
src/gamesbyexample/pygame_games/memorypuzzle.py:172
↓ 1 callers
Function
getButtonClicked
(x, y)
src/gamesbyexample/pygame_games/simulate.py:239
↓ 1 callers
Function
getCalendarFor
(year, month)
src/gamesbyexample/calendarmaker.py:42
↓ 1 callers
Function
getClues
Returns a string with the pico, fermi, bagels clues for a guess and secret number pair.
src/gamesbyexample/bagels.py:71
↓ 1 callers
Function
getClues
Returns a string with the pico, fermi, bagels clues for a guess and secret number pair.
barebones/bagels-barebones.py:45
↓ 1 callers
Function
getColorOfPaletteAt
(x, y)
src/gamesbyexample/pygame_games/inkspill.py:396
↓ 1 callers
Function
getComputerMemoryString
Return a string representing the "computer memory".
src/gamesbyexample/hacking.py:117
↓ 1 callers
Function
getComputerMove
Given a board and the computer's tile, determine where to move and return that move as a [x, y] list.
src/gamesbyexample/reversegam.py:222
↓ 1 callers
Function
getComputerMove
(board)
src/gamesbyexample/pygame_games/fourinarow.py:258
↓ 1 callers
Function
getComputerMove
(board, computerTile)
src/gamesbyexample/pygame_games/flippy.py:486
↓ 1 callers
Function
getDeck
Return a list of (rank, suit) tuples for all 52 cards.
src/gamesbyexample/blackjack.py:140
↓ 1 callers
Function
getDistance
Returns the distance between (x1, y1) and (x2, y2) by using the Pythagorean Theorem.
src/gamesbyexample/vacuumbot.py:181
↓ 1 callers
Function
getDropSlots
(board)
src/gamesbyexample/pygame_games/gemgem.py:364
↓ 1 callers
Function
getDroppingGems
(board)
src/gamesbyexample/pygame_games/gemgem.py:432
↓ 1 callers
Method
getFeetStr
Returns the string of the duckling's feet.
src/gamesbyexample/ducklings.py:182
↓ 1 callers
Method
getFeetStr
()
javascript_games/ducklings.js:214
↓ 1 callers
Method
getHeadStr
Returns the string of the duckling's head.
src/gamesbyexample/ducklings.py:88
↓ 1 callers
Method
getHeadStr
()
javascript_games/ducklings.js:104
↓ 1 callers
Function
getHumanMove
(board, isFirstMove)
src/gamesbyexample/pygame_games/fourinarow.py:176
↓ 1 callers
Function
getLegs
Returns a list of which poles contain legs.
src/gamesbyexample/ghostleglottery.py:83
↓ 1 callers
Function
getMove
Asks the player for their move, and returns 'H' for hit, 'S' for stand, and 'D' for double down.
src/gamesbyexample/blackjack.py:218
↓ 1 callers
Function
getMoveablePegs
Return a list of spaces that have pegs that can be moved.
src/gamesbyexample/pegsolitaire.py:103
↓ 1 callers
Function
getNewBoard
Returns a dictionary that represents the board. The keys are (x, y) tuples of integer indexes for board positions, the values are WALL, EMPTY_
src/gamesbyexample/hungryrobots.py:62
↓ 1 callers
Function
getNewBoard
Returns a dictionary that represents the big tic-tac-toe board. Keys are (x, y) int tuples that span from 0 to 2, the values are dictonaries t
src/gamesbyexample/ultimatetictactoe.py:63
↓ 1 callers
Function
getNewBoard
Returns a dictionary that represents the state of the board. The keys are strings of the space labels, the values are X_PLAYER, O_PLAYER,
src/gamesbyexample/royalgameofur.py:177
← previous
next →
301–400 of 712, ranked by callers