Skip to content

Pragmatists/diamond-kata-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Diamond Kata

Proposed by Seb Rose http://claysnow.co.uk/recycling-tests-in-tdd

Problem Description

Given a letter, print a diamond starting with ‘A’ with the supplied letter at the widest point.

For example: print-diamond ‘A’ prints

 A  

For example: print-diamond ‘B’ prints

 -A-  
 B-B   
 -A-  

For example: print-diamond ‘C’ prints

--A--  
-B-B-  
C---C  
-B-B-  
--A--  

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages