Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates Games API #120

Open
3 of 5 tasks
christiannagel opened this issue Dec 23, 2023 · 0 comments
Open
3 of 5 tasks

Updates Games API #120

christiannagel opened this issue Dec 23, 2023 · 0 comments
Assignees

Comments

@christiannagel
Copy link
Contributor

christiannagel commented Dec 23, 2023

  • Fix creation of 5x5x4 games
  • Change GetGuesses (GamesFactory) to expression
  • Change GameId to Id (see Change GameId to Id - breaking change! #111)
  • GamesService - remove the IGamesRepository field and use the parameter instead
  • ApiModelExtensions.cs - the AsXX methods creating a new object, rename to ToXXX

In GamesFactory:

Codes = Random.Shared.GetItems(s_shapes5, 4)
    .Zip(Random.Shared.GetItems(s_colors5, 4), (shape, color) => (Shape: shape, Color: color))
    .Select(item => string.Join(';', item.Shape, item.Color))
    .ToArray()
@christiannagel christiannagel self-assigned this Dec 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant