Skip to content

Adding Pygame module#3186

Closed
ghost wants to merge 3 commits intomasterfrom
unknown repository
Closed

Adding Pygame module#3186
ghost wants to merge 3 commits intomasterfrom
unknown repository

Conversation

@ghost
Copy link

@ghost ghost commented Oct 11, 2020

Describe your change:

Adding to simple games implemented using the pygame module
Requirements:pygame

#2673
#3146

@ruppysuppy Sir! I have formatted the programs using black editor.

  • Add an algorithm?
  • Fix a bug or typo in an existing algorithm?
  • Documentation change?

Checklist:

  • I have read CONTRIBUTING.md.
  • This pull request is all my own work -- I have not plagiarized.
  • I know that pull requests will not be merged if they fail the automated tests.
  • [] This PR only changes one algorithm file. To ease review, please open separate PRs for separate algorithms.
  • All new Python files are placed inside an existing directory.
  • All filenames are in all lowercase characters with no spaces or dashes.
  • All functions and variable names follow Python naming conventions.
  • All function parameters and return values are annotated with Python type hints.
  • All functions have doctests that pass the automated testing.
  • All new algorithms have a URL in its comments that points to Wikipedia or other similar explanation.
  • If this pull request resolves one or more open issues then the commit message contains Fixes: #{$ISSUE_NO}.

Naga Pranathi Nimmagadda added 3 commits October 7, 2020 13:11
Pygame-module
Simple games are developed using python gui that can be run from CLI if you have "PYTHON" and "PYGAME" module installed in the pc.

After installing the python. Install the pygame module using the following command: 
In CLI type:

pip install pygame

This repo contains 2 basic games.

#SNAKE GAME --- The snake moves in the box. Make sure it doesn't cross the boundaries.It's size i.e the length of the snake increases as it eats the food. Navigate the snake using the arrow keys of the keyboard.

#PingPong --- The ball moves across the box as it touches the slidebar score gets incremented if it is missed the score is decremented.

© 2020 GitHub, Inc.
Copy link
Member

@ruppysuppy ruppysuppy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Requirements

Read the Contribution Guide before contributing

Use black to properly format your code. Don't add so many unnecessary new-lines (chunk similar logic together without new-lines). To use pygame, it has to be added to the requirements

Use new line between code implementing different logic

@ghost ghost closed this Oct 19, 2020
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant