Skip to content

Commit

Permalink
Prepare v0.3.43
Browse files Browse the repository at this point in the history
  • Loading branch information
0xshora committed Jul 6, 2024
1 parent 8c58c0a commit 10dff87
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 32 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Pixelaw P-WAR",
"image": "ghcr.io/pixelaw/p_war:0.3.42",
"image": "ghcr.io/pixelaw/p_war:0.3.43",
"forwardPorts": [
5050,
8080,
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json-e
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Pixelaw P-WAR",
"image": "ghcr.io/pixelaw/p_war:0.3.41",
"image": "ghcr.io/pixelaw/p_war:0.3.42",
"forwardPorts": [
5050,
8080,
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@


# p/war
Version 0.3.42
Version 0.3.43
## Purpose

To host game events on PixeLAW to create engaging experiences for users and developers. One of the core values of PixeLAW is the ability to add rules, proving that new experiences can be created through simple games with the addition of rules.
Expand Down
2 changes: 1 addition & 1 deletion README.md-e
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@


# p/war
Version 0.3.41
Version 0.3.42
## Purpose

To host game events on PixeLAW to create engaging experiences for users and developers. One of the core values of PixeLAW is the ability to add rules, proving that new experiences can be created through simple games with the addition of rules.
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.3.42
0.3.43
56 changes: 29 additions & 27 deletions src/constants.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -7,47 +7,49 @@ const APP_ICON: felt252 = 'U+2694';
const APP_MANIFEST: felt252 = 'BASE/manifests/p_war';

const OUT_OF_BOUNDS_GAME_ID: usize = 9999;
// ####################################
// ### GAME CONFIGURATION FOR EthCC ###
// ####################################
// # Initial settings
const INITIAL_COLOR: u32 = 0xFFFFFFFF;
const DEFAULT_AREA: u32 = 32;
const DEFAULT_PX: u32 = 10;
const MAX_COLOR_SIZE: usize = 9;
const GAME_DURATION: u64 = 259200; // 3 days in seconds for EthCC
const DEFAULT_RECOVERY_RATE: u64 = 300; // 5 mins to recover 1PX

// # For Governance
const PROPOSAL_FACTOR: u32 = 6;
const PROPOSAL_DURATION: u64 = 60 * 60 * 3; // 3 hours in seconds.
const NEEDED_YES_PX: u32 = 1;

// for additional rules
const DISASTER_SIZE: u32 = 5;

// // ###############################################
// // ### GAME CONFIGURATION FOR CLOSED BETA TEST ###
// // ###############################################
// // ####################################
// // ### GAME CONFIGURATION FOR EthCC ###
// // ####################################
// // # Initial settings
// const GAME_ID: usize = 1;
// const INITIAL_COLOR: u32 = 0xFFFFFFFF;
// const DEFAULT_AREA: u32 = 16;
// const DEFAULT_AREA: u32 = 32;
// const DEFAULT_PX: u32 = 10;
// const MAX_COLOR_SIZE: usize = 9;
// const GAME_DURATION: u64 = 15 * 60; // 15 minutes in seconds
// const DEFAULT_RECOVERY_RATE: u64 = 10; // 10 secs to recover 1PX
// const GAME_DURATION: u64 = 259200; // 3 days in seconds for EthCC
// const DEFAULT_RECOVERY_RATE: u64 = 300; // 5 mins to recover 1PX
// const BASE_COST: u32 = 1;

// // # For Governance
// const PROPOSAL_FACTOR: u32 = 6;
// const PROPOSAL_DURATION: u64 = 60; // 1 min in seconds.
// // const PROPOSAL_DURATION: u64 = 0; // 0 for sozo test.
// const PROPOSAL_DURATION: u64 = 60 * 60 * 3; // 3 hours in seconds.
// const NEEDED_YES_PX: u32 = 1;

// // for additional rules
// const DISASTER_SIZE: u32 = 5;

// ###############################################
// ### GAME CONFIGURATION FOR CLOSED BETA TEST ###
// ###############################################
// # Initial settings
const GAME_ID: usize = 1;
const INITIAL_COLOR: u32 = 0xFFFFFFFF;
const DEFAULT_AREA: u32 = 16;
const DEFAULT_PX: u32 = 10;
const MAX_COLOR_SIZE: usize = 9;
const GAME_DURATION: u64 = 15 * 60; // 15 minutes in seconds
const DEFAULT_RECOVERY_RATE: u64 = 10; // 10 secs to recover 1PX
const BASE_COST: u32 = 1;

// # For Governance
const PROPOSAL_FACTOR: u32 = 6;
const PROPOSAL_DURATION: u64 = 60; // 1 min in seconds.
// const PROPOSAL_DURATION: u64 = 0; // 0 for sozo test.
const NEEDED_YES_PX: u32 = 1;

// for additional rules
const DISASTER_SIZE: u32 = 5;


// // ####################################
// // ### GAME CONFIGURATION FOR LOCAL ###
Expand Down

0 comments on commit 10dff87

Please sign in to comment.