Skip to content

Commit

Permalink
closes #16
Browse files Browse the repository at this point in the history
  • Loading branch information
ProMix0 authored Jun 29, 2022
1 parent 5a48edd commit 70ee883
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# NoughtsCrosses
Simple game realisation for many platforms

...or just noughts-and-crosses based example of use multiple frameworks

# Usage
You can inject all game services into you DI container
> Manual dependency resolving is not recommended
```csharp
.ConfigureServices((context, services) =>
services
.AddNoughtsCrossesGame(builder =>
builder
.AddPlayer<AiPlayer>()
.AddPlayer<WpfPlayer>()
.AddField<OptimizedField>()
.AddGame<Game<AiPlayer, WpfPlayer>>(),
addLoopingService: true)
)
```
Then just run your `Host`

0 comments on commit 70ee883

Please sign in to comment.