MCPcopy Create free account

hub / github.com/asweigart/PythonStdioGames / functions

Functions712 in github.com/asweigart/PythonStdioGames

↓ 1 callersFunctiondisplayOutlineDiamond
(size)
javascript_games/diamonds.js:29
↓ 1 callersFunctiondisplayWallDict
Display a wall dictionary, as returned by wallStrToWallDict(), on the screen.
src/gamesbyexample/mazerunner3d.py:133
↓ 1 callersFunctiondoPlayerMove
Ask the player for their move, and if it is valid, carry it out on the board.
src/gamesbyexample/barca.py:199
↓ 1 callersFunctiondoPlayerMove
Ask the player for a move and carry it out on the board.
src/gamesbyexample/hexapawn.py:159
↓ 1 callersFunctiondrawApple
(coord)
src/gamesbyexample/pygame_games/wormy.py:206
↓ 1 callersFunctiondrawAquarium
Draw the aquarium on the screen.
src/gamesbyexample/fishtank.py:218
↓ 1 callersFunctiondrawBoard
(board)
src/gamesbyexample/pygame_games/tetromino.py:457
↓ 1 callersFunctiondrawBoard
(board)
src/gamesbyexample/pygame_games/pentomino.py:684
↓ 1 callersFunctiondrawBoard
(board)
src/gamesbyexample/pygame_games/tetrominoforidiots.py:355
↓ 1 callersFunctiondrawBranch
(x, y, direction, branchLength)
src/gamesbyexample/fractalnonuniformtree.py:29
↓ 1 callersFunctiondrawBranch
(startPosition, direction, branchLength)
src/gamesbyexample/fractaltree.py:12
↓ 1 callersFunctiondrawCarpet
(left, top, width, height)
src/gamesbyexample/sierpinskisquare.py:25
↓ 1 callersFunctiondrawColorSchemeBoxes
(x, y, schemeNum)
src/gamesbyexample/pygame_games/inkspill.py:259
↓ 1 callersFunctiondrawGrid
()
src/gamesbyexample/pygame_games/wormy.py:213
↓ 1 callersFunctiondrawHealthMeter
(currentHealth)
src/gamesbyexample/pygame_games/squirrel.py:317
↓ 1 callersFunctiondrawHighlightBox
(boxx, boxy)
src/gamesbyexample/pygame_games/memorypuzzle.py:249
↓ 1 callersFunctiondrawLogoAndButtons
()
src/gamesbyexample/pygame_games/inkspill.py:348
↓ 1 callersFunctiondrawMap
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 callersFunctiondrawMovingGem
(gem, progress)
src/gamesbyexample/pygame_games/gemgem.py:319
↓ 1 callersFunctiondrawMower
Draw the lawn mower with its left edge at mowerx, mowery.
src/gamesbyexample/lawnmower.py:113
↓ 1 callersFunctiondrawNextPiece
(piece)
src/gamesbyexample/pygame_games/tetromino.py:496
↓ 1 callersFunctiondrawNextPiece
(piece)
src/gamesbyexample/pygame_games/pentomino.py:723
↓ 1 callersFunctiondrawNextPiece
(piece)
src/gamesbyexample/pygame_games/tetrominoforidiots.py:394
↓ 1 callersFunctiondrawPalettes
()
src/gamesbyexample/pygame_games/inkspill.py:373
↓ 1 callersFunctiondrawScore
(score)
src/gamesbyexample/pygame_games/wormy.py:189
↓ 1 callersFunctiondrawSierpinski
(x, y, level, color)
src/gamesbyexample/sierpinskitriangle.py:42
↓ 1 callersFunctiondrawSnake
(lengths)
src/gamesbyexample/pythons.py:133
↓ 1 callersFunctiondrawSnakeHead
(length)
src/gamesbyexample/pythons.py:48
↓ 1 callersFunctiondrawSnowflake
(sideLength, levels)
src/gamesbyexample/kochsnowflake.py:52
↓ 1 callersFunctiondrawStatus
(score, level)
src/gamesbyexample/pygame_games/tetromino.py:469
↓ 1 callersFunctiondrawStatus
(score, level)
src/gamesbyexample/pygame_games/pentomino.py:696
↓ 1 callersFunctiondrawStatus
(score, level)
src/gamesbyexample/pygame_games/tetrominoforidiots.py:367
↓ 1 callersFunctiondrawTile
(tile, x, y, canvas)
inprogress/tsuromapmaker.py:77
↓ 1 callersFunctiondrawTree
(x, y, direction, seed)
src/gamesbyexample/fractalnonuniformtree.py:68
↓ 1 callersFunctiondrawTwistDownSegment
(length)
src/gamesbyexample/pythons.py:112
↓ 1 callersFunctiondrawTwistUpSegment
(length)
src/gamesbyexample/pythons.py:90
↓ 1 callersFunctiondrawWorm
(wormCoords)
src/gamesbyexample/pygame_games/wormy.py:196
↓ 1 callersFunctionencryptMessage
(message, key)
src/gamesbyexample/railfencecipher.py:94
↓ 1 callersFunctionencryptMessage
Encrypt the message using the key.
src/gamesbyexample/affinecipher.py:98
↓ 1 callersFunctionencryptMessage
Encrypt the message using the key.
src/gamesbyexample/vigenerecipher.py:63
↓ 1 callersFunctionencryptMessage
Encrypt the message using the key.
src/gamesbyexample/simplesubcipher.py:83
↓ 1 callersFunctionenglishToLeetspeak
Convert the English string in message and return leetspeak.
src/gamesbyexample/leetspeak.py:33
↓ 1 callersFunctionenglishToMiddleLetterScramble
Convert the string message into middle-letter scrambled text.
src/gamesbyexample/middleletterscrambler.py:42
↓ 1 callersFunctionenglishToMorse
(message)
src/gamesbyexample/morsecode.py:63
↓ 1 callersFunctionenglishToPigLatin
(message)
src/gamesbyexample/piglatin.py:31
↓ 1 callersFunctionenglishToSpongecase
Return the spongecase form of the given string.
src/gamesbyexample/spongecase.py:30
↓ 1 callersFunctionenterPlayerTile
()
src/gamesbyexample/pygame_games/flippy.py:422
↓ 1 callersFunctionfilledInHilbert
()
src/gamesbyexample/hilbertcurve.py:51
↓ 1 callersFunctionfindModInverse
Return the modular inverse of a % m, which is the number x such that a*x % m = 1
src/gamesbyexample/affinecipher.py:149
↓ 1 callersFunctionfloodAnimation
(board, paletteClicked, animationSpeed=25)
src/gamesbyexample/pygame_games/inkspill.py:288
↓ 1 callersFunctionfloodFill
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 callersFunctionfloodFill
(board, oldColor, newColor, x, y)
src/gamesbyexample/pygame_games/inkspill.py:411
↓ 1 callersFunctiongameOverAnimation
(color=WHITE, animationSpeed=50)
src/gamesbyexample/pygame_games/simulate.py:213
↓ 1 callersFunctiongameWonAnimation
(board)
src/gamesbyexample/pygame_games/memorypuzzle.py:270
↓ 1 callersFunctiongenerateAreMillenialsKillingHeadline
()
src/gamesbyexample/clickbait.py:67
↓ 1 callersFunctiongenerateBigCompaniesHateHerHeadline
()
src/gamesbyexample/clickbait.py:79
↓ 1 callersFunctiongenerateDontWantYouToKnowHeadline
()
src/gamesbyexample/clickbait.py:95
↓ 1 callersFunctiongenerateFish
Return a dictionary that represents a fish.
src/gamesbyexample/fishtank.py:102
↓ 1 callersFunctiongenerateGiftIdeaHeadline
()
src/gamesbyexample/clickbait.py:101
↓ 1 callersFunctiongenerateJobAutomatedHeadline
()
src/gamesbyexample/clickbait.py:116
↓ 1 callersFunctiongenerateRandomKey
Generate and return a random encryption key.
src/gamesbyexample/affinecipher.py:132
↓ 1 callersFunctiongenerateRandomKey
Generate and return a random encryption key.
src/gamesbyexample/simplesubcipher.py:119
↓ 1 callersFunctiongenerateReasonsWhyHeadline
()
src/gamesbyexample/clickbait.py:108
↓ 1 callersFunctiongenerateWhatYouDontKnowHeadline
()
src/gamesbyexample/clickbait.py:72
↓ 1 callersFunctiongenerateYouWontBelieveHeadline
()
src/gamesbyexample/clickbait.py:87
↓ 1 callersMethodgetAction
(self)
src/gamesbyexample/zombiebitefight.py:54
↓ 1 callersFunctiongetBlankBoard
Create a new, blank tic-tac-toe board.
src/gamesbyexample/tictactoe.py:40
↓ 1 callersFunctiongetBlankBoard
()
src/gamesbyexample/pygame_games/gemgem.py:265
↓ 1 callersFunctiongetBlankBoard
()
src/gamesbyexample/pygame_games/tetromino.py:383
↓ 1 callersFunctiongetBlankBoard
()
src/gamesbyexample/pygame_games/pentomino.py:610
↓ 1 callersFunctiongetBlankBoard
()
src/gamesbyexample/pygame_games/tetrominoforidiots.py:281
↓ 1 callersFunctiongetBoardWithValidMoves
Returns a new board with . marking the possible moves.
src/gamesbyexample/reversegam.py:143
↓ 1 callersFunctiongetBoardWithValidMoves
(board, tile)
src/gamesbyexample/pygame_games/flippy.py:389
↓ 1 callersMethodgetBodyStr
Returns the string of the duckling's body.
src/gamesbyexample/ducklings.py:140
↓ 1 callersMethodgetBodyStr
()
javascript_games/ducklings.js:164
↓ 1 callersFunctiongetBoxAtPixel
(x, y)
src/gamesbyexample/pygame_games/memorypuzzle.py:172
↓ 1 callersFunctiongetButtonClicked
(x, y)
src/gamesbyexample/pygame_games/simulate.py:239
↓ 1 callersFunctiongetCalendarFor
(year, month)
src/gamesbyexample/calendarmaker.py:42
↓ 1 callersFunctiongetClues
Returns a string with the pico, fermi, bagels clues for a guess and secret number pair.
src/gamesbyexample/bagels.py:71
↓ 1 callersFunctiongetClues
Returns a string with the pico, fermi, bagels clues for a guess and secret number pair.
barebones/bagels-barebones.py:45
↓ 1 callersFunctiongetColorOfPaletteAt
(x, y)
src/gamesbyexample/pygame_games/inkspill.py:396
↓ 1 callersFunctiongetComputerMemoryString
Return a string representing the "computer memory".
src/gamesbyexample/hacking.py:117
↓ 1 callersFunctiongetComputerMove
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 callersFunctiongetComputerMove
(board)
src/gamesbyexample/pygame_games/fourinarow.py:258
↓ 1 callersFunctiongetComputerMove
(board, computerTile)
src/gamesbyexample/pygame_games/flippy.py:486
↓ 1 callersFunctiongetDeck
Return a list of (rank, suit) tuples for all 52 cards.
src/gamesbyexample/blackjack.py:140
↓ 1 callersFunctiongetDistance
Returns the distance between (x1, y1) and (x2, y2) by using the Pythagorean Theorem.
src/gamesbyexample/vacuumbot.py:181
↓ 1 callersFunctiongetDropSlots
(board)
src/gamesbyexample/pygame_games/gemgem.py:364
↓ 1 callersFunctiongetDroppingGems
(board)
src/gamesbyexample/pygame_games/gemgem.py:432
↓ 1 callersMethodgetFeetStr
Returns the string of the duckling's feet.
src/gamesbyexample/ducklings.py:182
↓ 1 callersMethodgetFeetStr
()
javascript_games/ducklings.js:214
↓ 1 callersMethodgetHeadStr
Returns the string of the duckling's head.
src/gamesbyexample/ducklings.py:88
↓ 1 callersMethodgetHeadStr
()
javascript_games/ducklings.js:104
↓ 1 callersFunctiongetHumanMove
(board, isFirstMove)
src/gamesbyexample/pygame_games/fourinarow.py:176
↓ 1 callersFunctiongetLegs
Returns a list of which poles contain legs.
src/gamesbyexample/ghostleglottery.py:83
↓ 1 callersFunctiongetMove
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 callersFunctiongetMoveablePegs
Return a list of spaces that have pegs that can be moved.
src/gamesbyexample/pegsolitaire.py:103
↓ 1 callersFunctiongetNewBoard
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 callersFunctiongetNewBoard
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 callersFunctiongetNewBoard
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
← previousnext →301–400 of 712, ranked by callers