Giter VIP home page Giter VIP logo

pyhockey's People

Contributors

asia132 avatar brainstupor avatar kozickikarol avatar kresowe avatar qrzychu avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

pyhockey's Issues

Create unittests for PhysicsObject class

  • New file in tests folder
  • I think we should test all methods
  • Remember - you can create few tests for one method - to simulate all cases - too small tests are better than too big

Adjust Goal + detect collisions

Adjust goal size:

Add goal width:

Goal center: (pitch_x_max+pitch_x_min)/2
Goal should exist from goal_center-width/2 to goal_center+width/2

Collision bug.

We have talked about it. You saw it. It's funny but game is not playable :)

Create unittests for Mallet, Disc classes

Mallet and Disc don't have many methods. Moreover they aren't complilated so it should be easy.
You can for example create tests for accelerate, load_image, move_to.

Create unittests for Vector class

  • Create TestVector.py file in tests folder
  • Create unittests for nontrivial methods such as cross, normalized, angle etc.
  • If it is needed use mocks

Create a Pitch and Goal classes.

+If you are not sure what these classes should contain take a look at https://github.com/KaRi94/PyHockey/wiki/Podzia%C5%82-na-poszczeg%C3%B3lne-klasy, but feel free.

+Find some nicely developed background for Pitch (horizontally).

+Barriers of pitch should be smaller than background because we also want display Scoreboard and small camera image.

+I think it would be good if goals barriers were little inside the pitch.

+There should be method which allows to draw it

Prepare high-quality graphics.

Background should be transparent.
Although You don't have to worry about image size (we can use transform.scale), remember about proper aspect ratio.

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.