Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

byu-catan

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

byu-catan - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

16

gameplay/js/model/hexgrid.js

@@ -179,8 +179,8 @@ // DO NOT EDIT THIS FILE

var HexGrid = (function HexGridClass(){
function HexGrid(bWidth,lDiagonal,rDiagonal,x0,y0,hexClass, hexes){
function HexGrid(bWidth,lDiagonal,rDiagonal,x0,y0,hexClass, hexdata){
// This function assumes that there is symmetry along at least two axis
// in otherwords bw == ld OR ld == rd OR rd == bw
var hexes = [];
var hexes = []
var offsets = [];
var lengths = [];
var lengths = [];
var left;

@@ -192,5 +192,5 @@ var right;

var arrayHeight = lDiagonal+rDiagonal -1;
for (var count = 0; count < arrayHeight; count++) {
rightPad = (Math.max(0, count - lDiagonal + 1));

@@ -204,7 +204,7 @@ leftPad = (Math.max(0, lDiagonal - count - 1));

for (var cellCount = 0; cellCount < length; cellCount++){
var hexToAdd = new hexClass(this._getLocation(offset,cellCount,count), hexes[count][cellCount]);
var hexToAdd = new hexClass(this._getLocation(offset,cellCount,count), hexdata[count][cellCount]);
hexToAdd.setLocation(this._getLocation(offset,cellCount, count));
currentLine.push(hexToAdd);
}
hexes.push(currentLine);

@@ -214,3 +214,3 @@ }

this.hexes = hexes;
this.linkOverlaps()
this.linkOverlaps()
};

@@ -217,0 +217,0 @@

{
"name": "byu-catan",
"description": "Project framework for BYU CS 340 group project",
"version": "1.0.2",
"version": "1.0.3",
"main": "index.js",

@@ -6,0 +6,0 @@ "dist-tags": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc