Skip to content

bukv/bille

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple billiards in Golang

A small game using the fogleman/gg library. The current version communicates via command-line interface.


How to play

  1. In the terminal, open the directory where this project is located. Run this project:

go run bille

  1. Now you can see the starting position of the ball. Open the directory out and open the image out.png: start_position.png
  2. Return to your terminal. The game asks you to specify the force of impact (from 1 to 255) and then the direction (from 0 to 360 degrees). Indicate the values that you think are appropriate. degrees.png This is how the degrees are calculated.
  3. Now return to the image out.png from out directory. You can see the trajectory of the ball: final_1.png If you get in the hole, the effect is as follows: final_2.png