Skip to content

frankhillard/starknet-paperfold

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

starknet-paperfold

This repository is a Starknet smart contract that emulates the folding of a paper. The goal of this repository is to test/practice the grid (Vec<Vec>) manipulation with cairo.

This repository contains

  • the source code of the smart contract
  • some tests of the smart contract

Folding paper

The paper is a grid of letters and can be folded only vertically or horizontally (i.e folding lines and columns in a grid).

One can fold horizontally one or more lines by folding the top part onto the bottom part (we will call this a top folding).

One can fold horizontally one or more lines by folding the bottom part onto the top part (we will call this a bottom folding).

One can fold vertically one or more columns by folding the left part onto the right part (we will call this a left folding).

One can fold vertically one or more columns by folding the right part onto the left part (we will call this a right folding).

The picture below describes these possible foldings. image

Tests

Tests can be launched with snforge test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages