NAME

Math::Abacus - A toy model of Chinese abacus

VERSION

Version 0.05

SYNOPSIS

use Math::Abacus;

Math::Abacus->num_of_digits(4);
my $abacus = Math::Abacus->new(460);
$abacus->add(1);
$abacus->subtract(5);
$abacus->show();

# PRINT
+-+-+-+-+-+
| x x x x |
| x x | | |
| | | x x |
+-+-+-+-+-+
| | x | x |
| x x x | |
| x x x x |
| x x x x |
| x | x x |
| x x x x |
+-+-+-+-+-+

METHODS

show

add

subtract

AUTHOR

Cheok-Yin Fung, <fungcheokyin at gmail.com>

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc Math::Abacus

You can also look for information at:

LICENSE AND COPYRIGHT

This software is Copyright (c) 2022 by Cheok-Yin Fung.

This is free software, licensed under:

MIT License (GPL Compatible)