Code Monkey home page Code Monkey logo

snake_2d's Introduction

Snake_2D

Simple snake game using turtle module within python in an object oriented manner. This project is useful for beginner and intermediate level programmers to better understand the concept of python.

This project covers following topics :-

1. Object oriented programming.
   - Concept of class.
   - Constructors (Constructors are generally used for instantiating an object. 
                   The task of constructors is to initialize(assign values) to the data members of the class when an object of class is created.
                   In Python the __init__() method is called the constructor and is always called when an object is created.)
   - Methods (a function that “belongs to” an object.)
   - Class attributes.
   - Instantiating a class.
2. Conditional statements (if-else, while & for loop).
3. Turtle module (creating turtles and performing various functions with it).
4. Time module (add delays in code execution).
5. Random module (generating pseudo-random numbers and choices).
6. String formatting.
7. Generating logics.

snake_2d's People

Contributors

chandandanjo avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.