# 08/25/2024

**Battleship first testnet game with smart contracts integrated!**

We successfully launched the first deployment of Battleship smart contracts on the Alephium testnet. When two players join a game room, they are both prompted to make their payments. The first player automatically creates a subcontract that holds both players' entry fees. At the end of the game, the winner's wallet is set to receive both players' entries. If the second player fails to confirm the payment within a specified time window, the first player automatically wins and can reclaim their entry fee.

Both players have the option to call the "claim" function of the specific subcontract on a new table found on the Claim page (see the screenshot below). To make a claim, they need a signed coupon, which is generated in the background.

**Why can both players claim and not just the winner?**

The first player to submit their entry currently covers the subcontract creation fee (0.1 $ALPH). This fee is refunded when the game is claimed. If the first player loses the game, they can use the "claim" function to get their initial deposit of 0.1 $ALPH back.

**What's Next:**

While we are pleased with the initial smart contract implementation, there's always room for improvement and the addition of new features. We plan to enhance stability and introduce quality-of-life improvements for the claim function.

Most of our team will be on vacation in the second half of September, but we aim to launch the next test phase of Battleship on the Alephium testnet in October. Stay tuned!

<figure><img src="/files/dkk9ctPYx8NrKiLJaFpU" alt=""><figcaption><p>Smart contract for Battleship</p></figcaption></figure>

<figure><img src="/files/XTV5FCRiPoGw6R1nI1HN" alt=""><figcaption><p>Claim page mockup</p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.pyreplay.com/development/bi-weekly-dev-updates/08-25-2024.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
