DuoHand Bench
=============

This is the hand DuoHand works through: it sits on this computer, picks up what you ask Duo for,
uses the software installed here, and hands the result back. You install it once.

To install
----------

1. Unzip this folder somewhere (anywhere - the installer moves the files where they belong).
2. Double-click Install.cmd.
3. A settings window opens at the end. In DuoHand, open Studio, "connect a computer", copy the
   code it shows you, and paste it into that window.

That is all. It starts by itself every time you sign in to Windows, and you can find it again in
the Start menu as "DuoHand Bench Settings".

What it puts on this computer
-----------------------------

  the program        %LOCALAPPDATA%\Programs\DuoHand Bench
  your settings      %APPDATA%\DuoHand\bench.json
  what it makes      Documents\DuoHand   (decks, pieces, logs - you can move this in the settings window)
  working files      %LOCALAPPDATA%\DuoHand   (rebuilt on demand, safe to delete)

It needs PowerShell 7. If this computer does not have it, the installer installs it first and
Windows will ask for permission.

From a terminal
---------------

  irm https://api.duohand.ai/bench/install.ps1 | iex        install (or update) without unzipping anything
  .\Install.ps1 -Pair ABCDE-FGHIJ                           install and connect in one go

Once it is installed
--------------------

  DuoHand Bench Settings (Start menu)   connect an account, autostart, where files go
  .\DuoHand-Bench.ps1 -Where            where everything is, what it is connected to, what it can drive
  .\DuoHand-Bench.ps1 -Update           take the newest build
  .\DuoHand-Bench.ps1 -Forget           disconnect this computer and delete its credential
