Coder Social home page Coder Social logo

cs-hackathon-2022's Introduction

CS Hackathon 2022

Academics Round

Concept

In this round, you'll be working in your groups to create some form of art using python turtle. You'll only have 30 minutes to create your deliverable. Aim for a concept, or showcase. The 5 teams with the most promising showcases will be given a week to finalise their result.

Deliverables

  • A readme file named groupname.md, containing
    • Your group name
    • a list of your usernames (ab123)
    • a few words describing your concept
  • A python script named groupname.py
    • Using python.turtle to produce some result
  • A png file name groupname.png

Delivery

  • Submit a pull request with all your files in a subfolder called YourGroupName To do this:
  • Put all three files in a folder called YourGroupName
  • Fork this repo
  • Click "add files" in the web interface
  • Drag the folder onto the interface
  • Provide a commit message
  • Make a pull request to this repository

You can go about this in different ways:

  • Using loops and maths to produce interesting paths
  • Using discrete instrcutions to create shapes
  • Using fonts to include text or glyphs
  • Other creative uses of the turtle library
  • Any combination of the above

Here's a few hints and suggestions:

  • You can be creative with more than paths. Fill color, stroke color, stroke width are all parameters you can play with during the turtle's travel
  • Using variables for different components of your code will help you make tweaks faster.
  • You can experiement with different things in smaller groups, and bring them together
  • Your output could be repeatable or randomised, your choice.
  • By default, the turtle moves slowly. Make it fast for testing, slow for debugging.
  • If your design is intricate, you can specify when you want the canvas to update for MUCH faster generation.
  • You can have a look at turtle art online, but you're very short on time, start tinkering quickly.

A few bits of code and syntax to help you get started

  • turtle.left(X) and turtle.right(X). Change the heading of the turtle by X degrees
  • turtle.color(stroke_color, fill_color) Set the colors of your drawings
  • Colors can be names "white", "blue"... or rgb values (255, 255, 255), (0, 0, 255)...
  • turtle.up() and turtle.down() to stop drawing as you move, or resume drawing as you move
  • turtle.forward(length) to move straight.
  • turtle.position() to get the turtle's coordinates. is an array : [x,y]
  • https://holypython.com/python-turtle-tutorial/turtle-positioning-goto-setpos-setx-sety-setheading/ has some more means of moving your turtle.
  • turtle.speed(X), 0-10, 0 fastest, 10 slowest. Save precious time only running slow if you need to.
  • You can set turtle.tracer(0, 0), and use turtle.update() in key places to dramatically reduce render time

cs-hackathon-2022's People

Contributors

mcollison avatar pd431 avatar willfp 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.