- Implement Tic Tac Toe for one client playing "X" and a computer playing a random "O" in response.
- Write a document that describes each step of the process.
- What steps do you know how to do?
- What steps require research?
## Problem 1 | |
We are going to take sentence and sort it alphabetically by the letters in each word. So, for instance, if you take the word "hello" and sort the letters in it, you get "ehllo". If you take the two words "hello world", and sort the letters in each word, you get "ehllo dlorw". | |
#### Input | |
One english sentence. | |
#### Output | |
words sorted. |
class Dogs | |
POOR = (0..5).to_a.sample | |
AVERAGE = (6..10).to_a.sample | |
EXCELLENT = (11..15).to_a.sample | |
def initialize | |
joe = { | |
:name => {:first => "Joe", :last=> "Smith"}, | |
:owner_quality => EXCELLENT | |
} |