Brave Tea's Projects
Hello World in Java
First practise with Scanner and input. "echo" code and a very basic calculator. I didn't set out to write the calculator which is why the code is not very good. It's an amalgamation of new things I was learning on the fly.
an isPrime() function written in Processing (Java)
An example of a loopcounter which prints something every 10 loops
Exercise of Module 3 OOP : Create a Lottery Machine based on a sequence diagram. 5 classes needed - Ball, Scoreboard, Drum, LotterMachine, TestLotteryMachine(main)
an exercise to make me realise the difference between a primitve and a reference type. Because a var that is assigned a primitive type merely copies the contents of the memory location you can't change it with this code. Because val2 is a reference type, which copies the handle to and not the value in, the memory I am able to edit the value and update it to the new value
All practise and final codes for Module 3 (Processing)
Module 4 of the Processing Course
Return Values
Module 6 of the Processing course
Arrays (the bread and butter of Java, yes?)
creating a coingame in processing as the first of 2 final exercises. The game is a board of coins laid out in a grid of x*x with all coins heads up. When you flip a coin the perpendicular neighbouring coins flip as well. Goal is to get all coins in the grid to tails.
creating a coingame in processing as the first of 2 final exercises. The game is a board of coins laid out in a grid of x*x with all coins heads up. When you flip a coin the perpendicular neighbouring coins flip as well. Goal is to get all coins in the grid to tails.
Practising Processing. This is the second Module's final Exercise. Make a BMI calculator which adheres to specific parameters found in the module.
This repository is about creating an arduino driven twinkle ceiling for my daughter. Next to the code used to create a sense of randomness in the twinkles of the stars I will also upload schematics for the hardware. IMPORTANT This is a work in progress for me and I am using this repository to learn on the go. When it is finalised I will mention so here.
A night light with several light controlling options.
Practising for the FilmTicket2 assignment of Module 2. I tried to have the array of tickets be passed to the TicketMachine
Part of the Processing Training PracExercise 2.1
All exercises belonging to OOP course: SEB BP2: Module 1
Some simple exercises for for loops and ArrayLists. These are committed here so I can share my answers to the questions with my tutor.
A two-part exercise to firstly write classes and subclasses for the animals in a zoo (fish and bird only) and secondly write habitats for those animals. Learning about classes, subclasses, inheritance, interfaces.
I was trying to get a better grasp on Polymorphism. In this case by using a class as a type and having methods ask specifaclly for an object of a class of TicketBase. The ticket classes had different variables but the results of the programme were the same.
A practice in map() and giving values to functions.
A piece of code to have a single RGB change colour depending on the amount of light sensed by the photo sensor. I am looking into more elegant coding and perhaps more elegant lighting patterns.
The code as is works and gives a random colour on the RGB LED every 1000ms. What I want to do now is see if I can make the code more elegant, possibly by using arrays.
code to run for a random generator of a list of tasks for students