-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from AaronSaikovski/v1.0.0-beta3
V1.0.0 beta3
- Loading branch information
Showing
85 changed files
with
1,336 additions
and
1,464 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using Crossword.Shared.ParserUtils; | ||
|
||
namespace Crossword.API.Data; | ||
|
||
public static class PuzzleData | ||
{ | ||
/// <summary> | ||
/// Reads a random file from the file system and returns it as a string | ||
/// </summary> | ||
/// <param name="puzzleDataFile"></param> | ||
/// <returns></returns> | ||
public static string? GetCrosswordPuzzleData(string? puzzleDataFile) | ||
{ | ||
|
||
ArgumentException.ThrowIfNullOrEmpty(puzzleDataFile); | ||
|
||
//get the data file | ||
var fileResult = ParserHelper.GetRandomDataFile(puzzleDataFile); | ||
return fileResult; | ||
} | ||
} |
8 changes: 5 additions & 3 deletions
8
Crossword.API/src/Endpoints/CrosswordData.cs → Crossword.API/Endpoints/CrosswordData.cs
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
2 changes: 2 additions & 0 deletions
2
...sword.API/src/Extensions/Configuration.cs → Crossword.API/Extensions/Configuration.cs
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
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
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,39 @@ | ||
////////////////////////////////////////////////////////////////////////////// | ||
// // | ||
// Module: CrosswordData.cs // | ||
// Authors: Aaron Saikovski & Bryan Richards // | ||
// Date: 23/01/97 // | ||
// Version: 1.0 // | ||
// Purpose: Utilizes a String Tokenizer to parse the crossword // | ||
// puzzle components from a data set string. // | ||
// // | ||
////////////////////////////////////////////////////////////////////////////// | ||
|
||
|
||
| ||
namespace Crossword.Entities; | ||
|
||
public sealed class CrosswordData | ||
public sealed record CrosswordData | ||
{ | ||
#region Fields | ||
|
||
//Instance variables for holding parsed QuickCrossword data | ||
public string? PuzzleType { get; set; } | ||
public int NumCols { get; set; } | ||
public int NumRows { get; set; } | ||
public int NumAcross { get; set; } | ||
public int NumDown { get; set; } | ||
|
||
//public int NumAcross { get; } | ||
//public int NumDown { get; } | ||
public int PuzzleId { get; set; } | ||
public int[]? ColRef { get; set; } | ||
public int[]? RowRef { get; set; } | ||
public int[]? IsAcross { get; set; } | ||
public int[]? QuesNum { get; set; } | ||
public string[]? Clues { get; set; } | ||
public string[]? Answers { get; set; } | ||
|
||
public int[]? Costs { get; set; } | ||
|
||
//public int[]? Costs { get; set; } | ||
public int[]? Costs { get; } | ||
|
||
public string? GetLetters { get; set; } | ||
public string? Blurb { get; set; } | ||
|
||
public int NumQuestions { get; set; } | ||
|
||
public int NumBytes { get; set; } | ||
|
||
|
||
|
||
#endregion | ||
|
||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
using System.Collections.Generic; | ||
|
||
|
||
namespace Crossword.Parser; | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
using System.Collections.Generic; | ||
|
||
|
||
namespace Crossword.Parser; | ||
|
||
|
Oops, something went wrong.