It’s dead no more.
Was the PSU under volting. I’ve replaced it with one of these and it now boots
It’s dead no more.
Was the PSU under volting. I’ve replaced it with one of these and it now boots

My SLUG is dead……. kind of half powers up before dying. I’m going to give CPR later with a hard reset just to see if I can shock it back to this world, but I fear it has gone forever
I’ve finally got my NSLU2 back up and running properly again!
I’ve ultimately reverted back to unslung after a dabble with Debian and OpenSlug but whilst these were much better and much more complete of an OS than uNSLUng, unlsung is much easier to use and repair when anything goes wrong!
Expect more NSLU2 posts as I start to do things again with it!
I am pleased to announce the release of TetWiis v0.2b.
Download Tetwiis

This release contains the following changes:
Following the first beta release, and with (so far) no reports of any issues, I’ve been continuing development of TetWiis.
To start with, I’ve changed the blocks to now use a graphic rather than simply drawing sqaures. This has made it look so much better!
Next up, I’ve started to add backgrounds into the main game. I’m going to make the background images change at various level changes. A quick sample of what the first level screen looks like is shown below.

I am pleased to announce the release of TetWiis v0.1beta.
Download Tetwiis
Please note: this is a beta release so that I can get the game tested by more than just me! and also gather feedback!
TetWiis is freeware, can be distributed freely and should never be charged for. If you distribute this elsewhere I’d appreciate being informed
This has taken a considerable amount of time to create. If you would like to give something back, you’ll find a donate link below
After downloading, unzip straight into the apps folder on your SD card. The zip already contains a ‘tetwiis’ folder so there is no need to create one. Once unzipped, either take a look at the Wiibrew page for TetWiis, or the readme.txt file for more details about the controls.
Below you’ll find a youtube video of TetWiis in action!
Answer – when its a rand() function call on the wii!
I was aware that there may be some frailties with the rand() function, but I didn’t expect to come across what I found!
My original code did the following to determine the next block
return (rand()%7) +1;
Which all seemed good and well. I understood that it was only pseudo random, though what I didn’t expect was if I called it consecutively within quick succession of each other, that it would suddenly start returning the same number! I noticed that if I dropped the blocks quick enough, that I could get 2 or 3 of the same type to appear in the list! It took me a few goes to test this and make sure it wasn’t just chance, but sure enough, I could recreate it!
The solution – I decided to implement a mersenne twister random number generator! I’d read about these types of generators before and searching the interweb, I came across http://www.bedaux.net/mtrand/ where sure enough, a simple enough implementation of it exists that I could pretty much take as a whole (Thanks Jasper!)
My randoms now really are random no matter how quickly I do it which obviously makes for a much better game of TetWiis
My ToDo list is as follows. Anything struck out has been done!
Screen shot below todo list!

I’ve now after spending some time finally got the 6 block preview pane to start showing the blocks so you can see what is coming next, and i’ve just added the queue initialise (not tested yet!) so that it changes on every new game. I’ve also re-jigged the background graphics a little to make the blocks fit in the preview panes, and to fit the game onto the screen properly!
I’ve also finally coded the scoring and levels/number of lines counts.
Next to do is following:
I’ve finally got around to releasing the source to BootMii Configuration Editor
This doesn’t signal and end to development on it, but now feels like a good time to release the source as it’s been pretty static for a good while now, plus I’m concentrating on TetWiis right now!
The source is available here http://code.google.com/p/bootmiiconfigurationeditor/
and is released with an LGPL licence.
All as I ask is that if you do use any of this or make any changes to any of it, please credit me in the readme somewhere and let me know.
I’m happy to include and take on board any changes which better and improve the product, and to include these in the SVN repository!