Ruby selection sort.
The general idea behind selection sort is, finding the least element in an array and exchanging it with the item in the first position of that given array. Two loops are used. The outer one shows where we are in the array and the second finds the smallest element between the current array item and [...]
challenge #6 display a chess board
I do not know but i know dear reader that you have seen a programming problem like this one ;
*** ***
***
*** ***
The program displays something in the form of a chess board where the * are the black boxes and the spaces are the white boxes.
To solve this using Ruby, we need [...]