Compare commits

..

18 Commits

Author SHA1 Message Date
Jaculabilis e580b91509 Temp commit of working state 2024-08-09 07:13:30 -07:00
Jaculabilis 158c952b6b Update README with order parsing grammar 2024-08-09 07:13:30 -07:00
Jaculabilis fa04aab6c6 Add adjudicate command and implement AdjudicateOrders 2024-08-09 07:13:30 -07:00
Jaculabilis c5bd74ae1e Add a basic status command 2024-08-09 07:13:30 -07:00
Jaculabilis 36e2224324 Add game setup script handler
This will allow setting up arbitrary test cases when writing test scripts
2024-08-09 07:13:30 -07:00
Jaculabilis 79cfbc2666 Add subcommands to new 2024-08-09 07:13:30 -07:00
Jaculabilis 73a8934201 Check for valid power names 2024-08-09 07:13:30 -07:00
Jaculabilis c1237e1f67 Remove file name prompt when reading from file 2024-08-09 07:13:30 -07:00
Jaculabilis 6f03c5ada1 Add repl alias to nix shell 2024-08-09 07:13:24 -07:00
Jaculabilis 91d2886d19 Add repl cli and script handling framework 2024-08-09 07:11:57 -07:00
Jaculabilis 2c677f4f36 Fix incorrect province name in standard unit list 2024-08-09 07:11:57 -07:00
Jaculabilis 771d390409 Add OrderSet model 2024-08-09 07:11:57 -07:00
Tim Van Baak 3db01c0ffd Update projects to dotnet 8 2024-08-09 06:53:22 -07:00
Tim Van Baak 0fd9c93a70 Get nix-ld to work with the Roslyn analyzer 2024-08-08 07:51:08 -07:00
Tim Van Baak 5b4758a4ed Update to dotnet 8 2024-08-08 07:49:39 -07:00
Tim Van Baak 7b2176b1d2 Update nixpkgs pin 2024-08-08 07:49:26 -07:00
Tim Van Baak 4bbd29ac93 Fix broken VS code shells
See https://github.com/NixOS/nix/issues/6982#issuecomment-1236743200
2024-08-08 07:47:37 -07:00
Tim Van Baak 26e268c3a0 Remove custom PS1 2024-08-08 07:45:27 -07:00
5 changed files with 18 additions and 10 deletions

View File

@ -2,7 +2,7 @@
"terminal.integrated.profiles.linux": {
"nix develop": {
"path": "nix",
"args": ["develop"]
"args": ["develop", "--impure"]
}
},
"terminal.integrated.profiles.windows": {

View File

@ -2,7 +2,7 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

View File

@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<IsPackable>false</IsPackable>

View File

@ -17,16 +17,18 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1667292599,
"narHash": "sha256-7ISOUI1aj6UKMPIL+wwthENL22L3+A9V+jS8Is3QsRo=",
"lastModified": 1717179513,
"narHash": "sha256-vboIEwIQojofItm2xGCdZCzW96U85l9nDW3ifMuAIdM=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "ef2f213d9659a274985778bff4ca322f3ef3ac68",
"rev": "63dacb46bf939521bdc93981b4cbb7ecb58427a0",
"type": "github"
},
"original": {
"id": "nixpkgs",
"type": "indirect"
"owner": "NixOS",
"ref": "24.05",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {

View File

@ -1,6 +1,7 @@
{
description = "5D Diplomacy With Multiversal Time Travel";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/24.05";
inputs.flake-utils.url = "github:numtide/flake-utils";
outputs = { self, nixpkgs, flake-utils }:
@ -9,11 +10,16 @@
in rec {
devShell = pkgs.mkShell {
shellHook = ''
PS1='\[\e[0;94m\]\u@\H\[\e[0;93m\] 5dplomacy \[\e[0;92m\]$(git rev-parse --short HEAD)\[\e[0m\]\n\W$ '
alias repl="dotnet run --project MultiversalDiplomacy repl"
'';
DOTNET_CLI_TELEMETRY_OPTOUT = 1;
packages = [ pkgs.dotnet-sdk pkgs.dotnetPackages.NUnit3 ];
NIX_LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath [ pkgs.stdenv.cc.cc ];
NIX_LD = builtins.readFile "${pkgs.stdenv.cc}/nix-support/dynamic-linker";
packages = [
pkgs.bashInteractive
pkgs.dotnet-sdk_8
pkgs.dotnetPackages.NUnit3
];
};
}
);