Google's doodle on kids coding: shortest program solving all the levels Today's Google doodle is about Celebrating 50 years of Kids Coding:
The goal is program the path of a little bunny so that it can eat all the carrots. There are 4 types of blocks (see pictures below):



From left to right:  


O("...", k) = orange piece: these are for loops which executes k times the program "...".
G = green piece: go one step forward if you can, otherwise do nothing  
Bl = blue piece: turn right and stay on the same block
Br = blue piece: turn left and stay on the same block




The code above can be written as 

O(O(G G Br, 4) Bl Bl, 23)


Each block (G, Bl, Br, O(...,k)) counts as 1 unit, so this program is of length 7. Note than the value of k is included inside the 1 unit of O.

There are 6 levels. To finish a level you need to eat all the carrots. It is not a problem if your program is not fully executed, the level finishes directly when you eat the last carrot.

We assume that all the 4 types of blocks are available in every level.


  Your task is to find a single program which solves every level of the game.
   Shortest program in blocks wins.


Screen shots of each level:
Level 1: 
Level 2: 
Level 3: 
Level 4: 
Level 5: 
Level 6:
Not my answer

6 blocks

The user Alex found a shorter solution, of length 6. I can confirm that their solution works:

O(O(Br G G, 6) Br, 5)




They attempted to edit this question to add this answer, so I'm assuming they want it to be displayed here. I don't like how the reputation system works around here.

The message they left:


  The editor doesn't have 10 rep, but does have a solution of length 6. O(O(RGG,6)R,5)


After a few days they responded again via editing the post with: "Thanks for doing this. Editing this was the only way I saw to get a message. I am happy it exists at all. Feel free to bring it into a new post if you want though."

Old answer

7 Blocks

O(O(G G Br, 4) G Br, 100)


Patience required.

Edit: The image was wrong.