Skip to content

n-gb/homework1

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

Homework #1 for Pivorak ruby course

Please pick up the pattern according to your variant:

1 "1234-5678-1234"
2 "1234-ABCD-1234"
3 "ASDF-1234-ASDF"
4 "AS12-1234-AS11"
5 "AS-1234567-ABC"
6 "12-1234567-ABC"
7 "ABC-1234567-ABC"
8 "QWE-123-RTY-987"
9 "123-ABC-RTY-987"
10 "123-ABC-987-ABC"
11 "ABC-ABC-ABC-123"
12 "ABCDEF-123456-98"
13 "ABCDEF-123456-1234"
14 "123456-1234-ABCD"
15 "123456-ZXCE-ABCD"
16 "ZXCE-ABCD-12345-12345"
17 "1XC1-A11D-1CDVB-123"
18 "AA21-ACBD-CD-VB-123AB"
19 "11-AD-1-CDVB-123-AB"
20 "11-1CDVB-12345-ABCD11"

Your task is:

  1. change the constant VARIANT in the first line of homework.rb file with your variant number;

  2. change the generate method in homework.rb file, so it will return a random number according to your variant pattern. Before you commit the solution, make sure the tests are passed.

Slides for this lecture: http://vova.github.io/course101/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Ruby 100.0%