Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Assignment Overview

You will implementing calculate_stats in percolationstats.rs and all the methods in percolation.rs.

Running the Program

To run the project, you should open two terminals:

  • In one terminal, run wasm-pack build --target web to compile your code.
  • In the other terminal, run python3 -m http.server to start the server. You can leave this server running while you work.
  • Go to http://0.0.0.0:8000/ (or whichever address the server says to go to) in your browser to view the project.

Whenever you make changes to the code, rerun wasm-pack build --target web, and hard-refresh the browser page.

Submitting Your Code

Before submitting your code, make sure to:

  • Run cargo clippy and fix any warnings that appear.
  • Run cargo fmt to format your code according to the Rust style guidelines.
  • Commit and push your code to your repository.

Then, submit your code to the Gradescope assignment.