学年割り電卓 GakunenWari Calculator
旧学年割り電卓は新たに学年割り電卓2になりました.
Old GakunenWari Calculator is updated to GakunenWari Calculator 2.
https://jumpaku.github.io/GakunenWari/
以下の旧学年割り電卓は現在公開されていません. The following GakunenWari Calculator is stopped.
学年割りとは?
割り勘とは合計金額を参加者数で割って1人当たりの支払額を決める方法です.支払額は次の式で表す事ができます.
1人当たりの支払額 = 合計金額 / 参加者数
これに対し, 学年割りとは学年によって1人当たりの支払額を変える支払額決定法です.この場合の支払額は次の式で表す事ができます.
i年生1人当たりの支払額 = 重みi x 1人当たりの基本支払額
多くの場合, 学年割りでは学年が高い程, 支払額が多くなります.
そして学年割り計算は少し計算が大変です.
使い方
私が作った学年割り電卓はWebアプリなのでインストールせずにスマートフォンで使用する事ができます.
使用手順は以下の通りです.
- ブラウザで次のページにアクセスする https://jumpaku.github.io/GakunenWari/
- 各欄に合計金額, 学年間金額差, そして各学年の参加者数を入力する
- "学年割り"ボタンを押す
これで各学年で参加者1人当たりの支払額が計算されます.
補足
- 支払額の差は等比数列を利用して算出されます
- 1円未満の端数は切り上げです
- 各欄に入力できる数値は0以上1兆未満です
- ソースコードはGitHubにあります. https://github.com/Jumpaku/GakunenWari/tree/master gh-pagesブランチを見てください.
- JavaScriptを使ったのは初めてです. 至らない点がございましたら是非教えて下さい.
- 新しく比計算機能が追加されました.次のページもご覧ください. jumpaku.hatenablog.com
What's Gakunen-Wari?
Warikan(割り勘) means "Split the bill".
For example, college students who belong to a club go to restaurant together, and they split the bill if they are the same grade.
The entire bill is split (divided evenly) between all participants.
It is represented by the following formula.
Payment amount of a participant = Total amount / Number of participants
However, if their grade are different, the payment amount of a participant is often changed by his/her grade.
It is represented by the following formula.
Payment amount of a i-th grader = weight_i x basic amount of a participant
Usually, the higher the grade of a participant is, the more his/her amount increase.
Japanese call this splitting Gakunen-Wari(学年割り).
Gakunen(学年) means "school grade".
Gakunen-Wari calculation is little complex.
How to use
You can use GakunenWari on your smart phone browser without installation because it is a web application.
The following is how to use GakunenWari.
- Access here. https://jumpaku.github.io/GakunenWari/
- Input total amount into "合計金額", difference of amount per grade into "学年間金額差", number of participants into each blank.
- Press the button "学年割り".
You can get the result of calculation.
Note
- GakunenWari calculates using geometric progression.
- Payment amount is rounded up after the decimal point.
- You can input values which are 0 <= value && value < 1,000,000,000,000.
- Source code is on GitHub. https://github.com/Jumpaku/GakunenWari/tree/master See gh-pages branch.
- Tell me something to fix because I am beginner.
- Now, you can use new feature to calculate using ratio. See the following. jumpaku.hatenablog.com
ガベこれ GabeColle
Introduction
ガベこれとは私のチームで開発したゲームです.
このゲームはガベージコレクションを題材にしています.
ガベージコレクションとはプログラミングでメモリの管理を自動的に行う仕組みです.
このゲームはガベージコレクションを画面上に生成される円をクリックして消す行為で表現しました.
今回のリリースは学校祭出品用なのでQuitボタンとTwitter機能が無効になっています.
Rule
Game1, Game2, Game3の各ゲーム画面によって細かいルールは異なります. しかし基本は以下の通りです.
- 画面上に円形のオブジェクトが生成される(alloc)
- プレイヤは不必要なオブジェクトを破棄する(free)
- 不必要なオブジェクトとはROOTから矢印を辿って到達できないものである
Source code
ここを見るhttps://github.com/GabeColle/GabeColle
How to play
- ここからダウンロードGabeColle.zip - Google ドライブ
- GabeColle.zipを展開
- GabeColle.exeを実行
サイズが約54MBと大きいです.
New version
学校祭展示用だったGabeColle 1 を一般公開の為にに少し変更して, GabeColle 2 としました.
Changes
- 全画面モードをウィンドウモードに変更
- Quitボタンを有効化
- Twitter機能を有効化
Introduction
GabeColle is a game developed by our team.
The motif of this game is Garbage Collection.
Garbage Collection is a form of automatic memory management.
You click circles on the screen and erase them. This is simulation of Garbage Collection.
This release is for college festival. Therefore Quit button and Twitter button is disabled.
Rule
There are some difference of detail rule between 3 game scenes, Game1, Game2, and Game3, however, basic rule is same. Basic rule is as follows.
- Circle objects are constructed on your screen.(alloc)
- You click and destruct them if they are no use objects.(free)
- If you cannot arrive to a object from ROOT passing through some allows, the object is no use object.
Source code
Download
- Download from GabeColle.zip - Google ドライブ.
- Extract GabeColle.zip
- Execute GabeColle.exe
This file size is 54MB, it is large.
Version 2
GabeColle 1 was for college festival. To release for public, we made little changes.
Changes
- full screen mode --> window mode
- enable Quit button
- enable Twitter
StreetRunner
Street Runner
ゲーム情報
- タイトル : StreetRunner
- 作者 :
- ジャンル : 対戦
- プレイ時間 : 10分程度
- プラットフォーム : Windows
- 言語 : 日本語
- 利用ライブラリ : Siv3D
Information
- Title : StreetRunner
- Developer :
- Genle: Fight
- Playtime : 10m
- Platform : Windows
- language : Japanese
- Library : Siv3D
What’s this?
Street Runnerは2人用の対戦ゲームです.
How to start
- ここからダウンロードします https://github.com/StreatRunner/StreetRunner
- Game/StreetRunner.exeを実行します
How to play
- プレイヤ2人は画面の前で左右に座ります
- 自分のキャラクタが先にゴールへ到達したプレイヤが勝者となります
- 使用するボタンは左のプレイヤはW,A,S,D,右のプレイヤは↑,←,↓,→で,使い方は次の通りです
- W(↑) ジャンプ
- A(←) 左へ移動
- S(↓) アタック
- D(→) 右へ移動
- 次の場合は相手はスタート位置まで戻ります
- 自分の攻撃が相手に当たる
- 相手とすれ違う時に自分の方が高い位置にいる
What’s this
Street Runner is a computer battle game for 2 players.
How to start
- Download from https://github.com/StreatRunner/StreetRunner
- Execute Game/StreetRunner.exe
How to play
- 2 players sit in front of screen side by side.
- If you goal before your opponent does, you are winner.
- Left player uses W,A,S,and D. Right player uses ↑,←,↓,and →.
- W(↑) Jump
- A(←) Go left
- S(↓) Attack
- D(→) Go right
- Your opponent returns if
- Your attack collides your opponent
- you are higher than your opponent as 2 players pass each other
GabeColle_Prototype Released
がべこれ というゲームのプロトタイプです.
これを作ってみて実現可能性を調べました.
このゲームはメモリの様子を再現してプレーヤ自身がガベージコレクションをするゲームです.
夏休みに製作する予定です.
This is prototype of a game named "GabeColle" for feasibility study.
"GabeColle" displays virtual memory and you do Garbage Collection.
We will develop during this summer vacation.
ここからダウンロードしてRelease/GabeColle.exeを実行してください.
Download from here and Execute Release/GabeColle.exe.