Coding Tetris in Bash Hi peeps. So you've come here because you've shown some interest in coding Tetris in bash. Goodness knows why, but we'll get straight on it. Firstly though, let me just say that this is MY implementation of the game. I'm aware that the implementations and methods used could probably be enhanced or improved, but they were used as they were the first solution I concocted for the puzzle at hand, and I had a limit of about fie hours (two motorway journeys) to get this coded from start to finish. Lets get into it. To break down what I needed for the very basic model (which ended up roughly 300 lines) I needed to write functions for the following: shape painter - a routine is needed to paint the shape at any point on the screen shape rotation - a routine is needed to rotate the shape shape collision - the shapes have to be "stackable" and not cross over any other shapes or the walls of the playing field shape mover - the user has
Lockdown Cookie Rolo Buns baked by my daughter. They were fantastic! :) Really easy to make and ideal for those with a sweet tooth and not worried about diet, weight or going into hyperglycaemic shock INGREDIENTS (makes 7) 250g plain flour 125g butter 1 egg 100g sugar (I think we used ordinary granulated sugar) 5g baking powder 100g chocolate chips (we cut up a Bourneville bar into small peices) 2 packs of Rolos. METHOD 1. Put flour, egg, sugar, butter and baking powder powder into a mixing bowl and mix well into a dough. It is best to do this step using your hands as you can rub the flour into the butter to mix well. I have not took a photo of this step because as you can imagine my fingers were as greasy as a teenager's face and I didn't want to gunk my phone up. Also, we used a shoebox to do the mixing as all the mixing bowls were in the dishwasher. 2. Once you have a nice dough, add the chocolate chips and mix well.