This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using Microsoft.VisualStudio.TestTools.UnitTesting; | |
namespace ScratchPadTest | |
{ | |
public class BowlingScoreCalculator | |
{ | |
private Frames _frames = new Frames(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using Microsoft.VisualStudio.TestTools.UnitTesting; | |
namespace ScratchPadTest | |
{ | |
public class Frames | |
{ | |
private readonly Frame[] _frames = new Frame[10]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using Microsoft.VisualStudio.TestTools.UnitTesting; | |
namespace ScratchPadTest | |
{ | |
public class Frame | |
{ | |
public static Frame Strike { get { return new Frame(10, 0); } } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Solution to CodeCombat's Gridmancer level | |
// http://sett.com/codecombat/beat-this-level-get-a-programming-job | |
// Fill the empty space with the minimum number of rectangles. | |
// (Rectangles should not overlap each other or walls.) | |
// The grid size is 1 meter, but the smallest wall/floor tile is 4 meters. | |
// If you can do better than one rectangle for every tile, let us know! | |
// We'll help you find a programming job (if you want one). | |
// Check the blue guide button at the top for more info. | |
// Press Contact below to report success if you want a job! |
NewerOlder