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

Add a Web version of TicTacToe #1427

Merged
merged 4 commits into from
Aug 3, 2022
Merged

Add a Web version of TicTacToe #1427

merged 4 commits into from
Aug 3, 2022

Conversation

paulcadman
Copy link
Collaborator

@paulcadman paulcadman commented Aug 2, 2022

The web version demonstrates injecting host functions into the WASM
import table and calling exported Juvix functions from JS.

The web version and the CLI version of the TicTacToe game use the same
game logic backend Juvix module.

To run the web example:

cd examples/milestone/TicTacToe/Web
juvix compile -r standalone TicTacToe.juvix
python3 -m http.server

Then navigate to http://localhost:8000

You should see:

Screenshot 2022-08-02 at 10 40 10

@paulcadman paulcadman added the documentation Improvements or additions to documentation label Aug 2, 2022
@paulcadman paulcadman added this to the 0.2.3 milestone Aug 2, 2022
@paulcadman paulcadman self-assigned this Aug 2, 2022
@janmasrovira
Copy link
Collaborator

Awesome 😍! I'll try it as soon as I can

@paulcadman
Copy link
Collaborator Author

We can wait to merge this after #1420 if it helps

@paulcadman paulcadman marked this pull request as ready for review August 2, 2022 17:41
The web version demonstrates injecting host functions into the WASM
import table and calling exported Juvix functions from JS.

The web version and the CLI version of the TicTacToe game use the same
game logic backend Juvix module.
@jonaprieto
Copy link
Collaborator

Let's get excited!

@jonaprieto jonaprieto merged commit 9877699 into main Aug 3, 2022
@jonaprieto jonaprieto deleted the web-tic-tac-toe branch August 3, 2022 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants